Reference Library
ExtractMPQNumber Method (mpqName)
NamespacesMBNCSUtilCheckRevisionExtractMPQNumber(String)
Extracts the MPQ number from the MPQ specified by the Battle.net server.
Declaration Syntax
C#Visual BasicVisual C++
public static int ExtractMPQNumber(
	string mpqName
)
Public Shared Function ExtractMPQNumber ( _
	mpqName As String _
) As Integer
public:
static int ExtractMPQNumber(
	String^ mpqName
)
Parameters
mpqName (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
ExceptionCondition
ArgumentExceptionThrown if the name of the MPQ version file is less than 8 characters long.
ArgumentNullExceptionThrown if the mpqName parameter is null (Nothing in Visual Basic).
NotSupportedExceptionThrown if the mpqName parameter indicates a Lockdown DLL.

Assembly: Asgard5Library (Module: Asgard5Library)