[ 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)
Calculates the revision check for the specified files.
Namespace:
MBNCSUtilAssembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Syntax
| C# |
|---|
public static int DoCheckRevision( string valueString, string[] files, int mpqNumber ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function DoCheckRevision ( _ valueString As String, _ files As String(), _ mpqNumber As Integer _ ) As Integer |
| Visual C++ |
|---|
public: static int DoCheckRevision( String^ valueString, array<String^>^ files, int mpqNumber ) |
Parameters
- valueString
- Type: System..::.String
The value string for the check revision function specified by Battle.net's SID_AUTH_INFO message.
- files
- Type: array<
System..::.String
>[]()[]
The list of files for the given game client. This parameter must be exactly three files long.
- mpqNumber
- Type: System..::.Int32
The number of the MPQ file. To extract this number, see the ExtractMPQNumber method.
Return Value
The checksum value.
Remarks
The file list for this is product-specific and order-specific:
| Product | File list |
|---|---|
| Starcraft; Starcraft: Brood War |
|
| Warcraft II: Battle.net Edition |
|
| Diablo II; Diablo II: Lord of Destruction |
|
| Warcraft III: The Reign of Chaos; Warcraft III: The Frozen Throne |
|
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if the valueString or files parameters are null (Nothing in Visual Basic). |
| System..::.ArgumentOutOfRangeException | Thrown if the files parameter is not a 3-string array. |
| System.IO..::.FileNotFoundException | Thrown if one of the specified game files is not found. |
| System.IO..::.IOException | Thrown in the event of a general I/O error. |