msiRecordGetFieldCount 函式 (msiquery.h)

MsiRecordGetFieldCount 函式會傳回記錄中的字段數目。

語法

UINT MsiRecordGetFieldCount(
  [in] MSIHANDLE hRecord
);

參數

[in] hRecord

記錄的句柄。

傳回值

如果函式成功,傳回值就是記錄中的欄位數目。

備註

MsiRecordGetFieldCount 參數傳回的計數不包含欄位 0。 讀取此計數以外的欄位存取權會傳回 Null 值。 寫入存取失敗。

規格需求

需求
最低支援的用戶端 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
程式庫 Msi.lib
Dll Msi.dll

另請參閱

記錄處理函式