Reference Library
DoCheckRevision Method (valueString, files, mpqNumber)
NamespacesMBNCSUtilCheckRevisionDoCheckRevision(String, array<String>[]()[][], Int32)
Calculates the revision check for the specified files.
Declaration Syntax
C#Visual BasicVisual C++
public static int DoCheckRevision(
	string valueString,
	string[] files,
	int mpqNumber
)
Public Shared Function DoCheckRevision ( _
	valueString As String, _
	files As String(), _
	mpqNumber As Integer _
) As Integer
public:
static int DoCheckRevision(
	String^ valueString, 
	array<String^>^ files, 
	int mpqNumber
)
Parameters
valueString (String)
The value string for the check revision function specified by Battle.net's SID_AUTH_INFO message.
files (array<String>[]()[][])
The list of files for the given game client. This parameter must be exactly three files long.
mpqNumber (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
ArgumentNullExceptionThrown if the valueString or files parameters are null (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionThrown if the files parameter is not a 3-string array.
FileNotFoundExceptionThrown if one of the specified game files is not found.
IOExceptionThrown in the event of a general I/O error.

Assembly: Asgard5Library (Module: Asgard5Library)