MsiRecordGetInteger Function

Windows Installer

MsiRecordGetInteger Function

The MsiRecordGetInteger function returns the integer value from a record field.

Syntax

C++int MsiRecordGetInteger(
  __in  MSIHANDLE hRecord,
  __in  unsigned int iField
);

Parameters

hRecord [in]

Handle to a record.

iField [in]

Specifies the field of the record from which to obtain the value.

Return Value

If the function succeeds, the return value is the integer value of the field.

Remarks

The MsiRecordGetInteger function returns MSI_NULL_INTEGER if the field is null or if the field is a string that cannot be converted to an integer.

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
HeaderMsiquery.h
LibraryMsi.lib
DLLMsi.dll

See Also

Record Processing Functions

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.