Share via


ICertServerPolicy::EnumerateAttributesClose メソッド (certif.h)

EnumerateAttributesClose メソッドは、属性列挙に接続されているリソースを解放します。

構文

HRESULT EnumerateAttributesClose();

戻り値

VB

メソッドが成功した場合、メソッドは S_OKを返します。

メソッドが失敗した場合は、エラーを示す HRESULT 値を返します。 一般的なエラー コードの一覧については、「 共通の HRESULT 値」を参照してください。

注釈

すべてのポリシー モジュールは、 EnumerateAttributesSetup を呼び出した後に EnumerateAttributesClose メソッドを 呼び出す必要があります。
EnumerateAttributes メソッド。

// Close the enumeration.
// hr is defined as an HRESULT.
hr = pCertServerPolicy->EnumerateAttributesClose();
if (FAILED(hr))
{
    printf("Failed EnumerateAttributesClose [%x]\n", hr);
    goto error;
}

要件

要件
サポートされている最小のクライアント サポートなし
サポートされている最小のサーバー Windows Server 2003 (デスクトップ アプリのみ)
対象プラットフォーム Windows
ヘッダー certif.h (Certsrv.h を含む)
Library Certidl.lib
[DLL] Certcli.dll

こちらもご覧ください

ICertServerPolicy

ICertServerPolicy::EnumerateAttributes

ICertServerPolicy::EnumerateAttributesSetup