MsiRecordGetInteger 函数 (msiquery.h)

MsiRecordGetInteger 函数返回记录字段中的整数值。

语法

int MsiRecordGetInteger(
  [in] MSIHANDLE hRecord,
  [in] UINT      iField
);

参数

[in] hRecord

记录的句柄。

[in] iField

指定要从中获取值的记录的字段。

返回值

如果函数成功,则返回值为字段的整数值。

注解

如果字段为 null 或字段是无法转换为整数的字符串, MsiRecordGetInteger 函数将返回 MSI_NULL_INTEGER

要求

要求
最低受支持的客户端 Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。
目标平台 Windows
标头 msiquery.h
Library Msi.lib
DLL Msi.dll

另请参阅

记录处理函数