[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Assembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Extracts the MPQ number from the MPQ specified by the Battle.net server.
Namespace:
MBNCSUtilAssembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Syntax
| C# |
|---|
public static int ExtractMPQNumber( string mpqName ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function ExtractMPQNumber ( _ mpqName As String _ ) As Integer |
| Visual C++ |
|---|
public: static int ExtractMPQNumber( String^ mpqName ) |
Parameters
- mpqName
- Type: System..::.String
The name of the MPQ file specified in the SID_AUTH_INFO message.
Return Value
The number from 0 to 7 specifying the number in the MPQ file.
Remarks
For older CheckRevision calls, the MPQ number is a required parameter of the CheckRevision function. Note that the MPQ number is simply the number represented in string format in the 8th position (index 7) of the string -- for example, in "IX86ver1.mpq", 1 is the version number.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Thrown if the name of the MPQ version file is less than 8 characters long. |
| System..::.ArgumentNullException | Thrown if the mpqName parameter is null (Nothing in Visual Basic). |
| System..::.NotSupportedException | Thrown if the mpqName parameter indicates a Lockdown DLL. |