StormLib API Reference

SFileSignArchive

Description

bool WINAPI SFileSignArchive(
  HANDLE hMpq,                    // Handle to an open archive
  DWORD dwSignatureType           // Type of signature
);

Function SFileSignArchive setups the archive so that it becomes signed during archive close.

Parameters

hMpq
[in] Handle to an open archive. This handle must have been obtained by SFileOpenArchive or SFileCreateArchive.
dwSignatureType
[in] Type of signature. Currently, only SIGNATURE_TYPE_WEAK is supported.

Return Value

When the function succeeds, it returns nonzero. On an error, the function returns false and GetLastError gives the error code.

Remarks

SFileSignArchive merely sets an internal flag. The actual signature generation will happen during call of SFileCloseArchive.

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