SAFER_HASH_IDENTIFICATION structure (winsafer.h)

The SAFER_HASH_IDENTIFICATION structure represents a hash identification rule.

Syntax

typedef struct _SAFER_HASH_IDENTIFICATION {
  SAFER_IDENTIFICATION_HEADER header;
  WCHAR                       Description[SAFER_MAX_DESCRIPTION_SIZE];
  WCHAR                       FriendlyName[SAFER_MAX_FRIENDLYNAME_SIZE];
  DWORD                       HashSize;
  BYTE                        ImageHash[SAFER_MAX_HASH_SIZE];
  ALG_ID                      HashAlgorithm;
  LARGE_INTEGER               ImageSize;
  DWORD                       dwSaferFlags;
} SAFER_HASH_IDENTIFICATION, *PSAFER_HASH_IDENTIFICATION;

Members

header

A SAFER_IDENTIFICATION_HEADER structure containing the structure header. The dwIdentificationType member of the header must be SaferIdentityTypeImageHash, and the cbStructSize member of the header must be sizeof(SAFER_HASH_IDENTIFICATION).

Description[SAFER_MAX_DESCRIPTION_SIZE]

A description of the hash identification rule provided by the user.

FriendlyName[SAFER_MAX_FRIENDLYNAME_SIZE]

A human-readable name for the hash identification rule.

HashSize

The size of the ImageHash member in bytes. For example, if the algorithm specified by the HashAlgorithm member is MD5, the size is 16.

ImageHash[SAFER_MAX_HASH_SIZE]

The computed hash of the code image.

HashAlgorithm

The algorithm used to compute the hash.

ImageSize

The size of the original file in bytes.

dwSaferFlags

Reserved for future use.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winsafer.h