[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Calculates the revision check for the specified files.

Namespace:  MBNCSUtil
Assembly:  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:

ProductFile list
Starcraft; Starcraft: Brood War
  • Starcraft.exe
  • storm.dll
  • battle.snp
Warcraft II: Battle.net Edition
  • Warcraft II BNE.exe
  • storm.dll
  • battle.snp
Diablo II; Diablo II: Lord of Destruction
  • Game.exe
  • Bnclient.dll
  • D2Client.snp
Warcraft III: The Reign of Chaos; Warcraft III: The Frozen Throne
  • War3.exe
  • storm.dll
  • Game.dll

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if the valueString or files parameters are null (Nothing in Visual Basic).
System..::.ArgumentOutOfRangeExceptionThrown if the files parameter is not a 3-string array.
System.IO..::.FileNotFoundExceptionThrown if one of the specified game files is not found.
System.IO..::.IOExceptionThrown in the event of a general I/O error.

See Also