StormLib API Reference

SFileVerifyArchive

Description

DWORD WINAPI SFileVerifyArchive(
  HANDLE hMpq
);

Function SFileVerifyArchive verifies digital signature of the archive, is a digital signature is present. in the MPQ and must have been open by SFileOpenArchive.

Note that MPQ archives created by StormLib are never signed.

Parameters

hMpq
[in] Handle to an open MPQ archive to be verified.

Return Value

Return value can be one of the following values:

Value Meaning
ERROR_NO_SIGNATURE
(0)
There is no known signature present in the MPQ.
ERROR_VERIFY_FAILED
(1)
An error occured during verifying the signature, such as no memory or read error.
ERROR_WEAK_SIGNATURE_OK
(2)
Weak digital signature was found in the archive and has been successfully verified. The signature is valid.
ERROR_WEAK_SIGNATURE_ERROR
(3)
Weak digital signature was found in the archive but its verification failed. The signature is not valid.
ERROR_STRONG_SIGNATURE_OK
(4)
Strong digital signature was found in the archive and has been successfully verified. The signature is valid.
ERROR_STRONG_SIGNATURE_ERROR
(5)
Strong digital signature was found in the archive but its verification failed. Either the signature is not valid or StormLib doesn't have the proper public key.

Availability in Storm.dll

Available in Storm.dll No
Ordinal number in Storm.dll 1.00 N/A
Ordinal number in Storm.dll 1.09 N/A