ICspInformations::GetHashAlgorithms 方法 (certenroll.h)

GetHashAlgorithms 方法會擷取提供者所支援的哈希演算法集合。

語法

HRESULT GetHashAlgorithms(
  [in, optional] ICspInformation *pCspInformation,
  [out]          IObjectIds      **ppValue
);

參數

[in, optional] pCspInformation

代表提供者的 ICspInformation 介面指標。 這可以是舊版密碼編譯服務提供者 (CSP) 、密碼編譯 API:新一代 (CNG) 提供者或 NULL。 如果您指定 NULL,這個方法會傳回所有 CSP 和 CNG 提供者所支援之所有哈希演算法的集合。

[out] ppValue

代表集合之 IObjectIds 介面之指標的位址。

傳回值

如果函式成功,函式會傳回 S_OK

如果函式失敗,它會傳回 HRESULT 值,指出錯誤。 如需常見錯誤碼的清單,請參閱 一般 HRESULT 值

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 certenroll.h
Dll CertEnroll.dll

另請參閱

ICspInformation

ICspInformations