共用方式為


wiasSetValidListGuid 函式 (wiamdef.h)

wiasSetValidListGuid 函式會設定類型VT_CLSID WIA_PROP_LIST屬性的有效值。

語法

HRESULT wiasSetValidListGuid(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       ULONG  ulCount,
       GUID   guidNom,
  [in] GUID   *pguidValues
);

參數

[in] pWiasContext

WIA 專案內容的指標。

propid

指定要更新之屬性的識別碼。

ulCount

指定 pgValues 陣列中的項目數目。

guidNom

指定屬性的名義值。

[in] pguidValues

有效屬性值陣列之第一個專案的指標。

傳回值

成功時,函式會傳回S_OK。 如果函式失敗,它會傳回標準 COM 錯誤或其中一個WIA_ERROR_XXX錯誤(如 Microsoft Windows SDK 檔中所述)。

要求

要求 價值
最低支援的用戶端 Microsoft Windows Me 和 Windows XP 和更新版本的 Windows作系統中提供。
目標平臺 桌面
標頭 wiamdef.h (包括 Wiamdef.h)
連結庫 Wiaservc.lib
DLL Wiaservc.dll

另請參閱

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListLong

wiasSetValidListStr

wiasSetValidRangeFloat

wiasSetValidRangeLong