MSIFILEHASHINFO Structure

Windows Installer

MSIFILEHASHINFO Structure

The MSIFILEHASHINFO structure contains the file hash information returned by MsiGetFileHash and used in the MsiFileHash table.

Syntax

C++
typedef struct _MSIFILEHASHINFO {
  ULONG dwFileHashInfoSize;
  ULONG dwData[4];
}MSIFILEHASHINFO, *PMSIFILEHASHINFO;

Members

dwFileHashInfoSize

Specifies the size, in bytes, of this data structure. Set this member to sizeof(MSIFILEHASHINFO) before calling the MsiGetFileHash function.

dwData

The entire 128-bit file hash is contained in four 32-bit fields. The first field corresponds to the HashPart1 column of the MsiHashFile table, the second field corresponds to the HashPart2 column, the third field corresponds to the HashPart3 column, and the fourth field corresponds to the HashPart4 column.

Remarks

The file hash entered into the fields of the MsiFileHash table must be obtained by calling MsiGetFileHash or the FileHash method. Do not use other methods to generate a file hash.

Requirements

VersionWindows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000
HeaderMsi.h

See Also

MsiGetFileHash
MsiFileHash table
Default File Versioning

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.