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 |
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈