SAFER_HASH_IDENTIFICATION structure

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

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

FriendlyName

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

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinSafer.h

 

 

Show: