This is experimental documentation.
Extracts the MPQ number from the MPQ specified by the Battle.net server.
Declaration Syntax
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
Exception | Condition |
---|---|
ArgumentException | Thrown if the name of the MPQ version file is less than 8 characters long. |
ArgumentNullException | Thrown if the mpqName parameter is null (Nothing in Visual Basic).
|
NotSupportedException | Thrown if the mpqName parameter indicates a Lockdown DLL. |
Assembly: Asgard5Library (Module: Asgard5Library)