ICertServerExit::EnumerateExtensionsSetup メソッド (certif.h)

EnumerateExtensionsSetup メソッドは、現在のコンテキストに関連付けられている最初の証明書拡張機能への内部列挙ポインターを初期化します。

列挙プロセスでは、無効で証明書に表示されない証明書拡張機能であっても、データベースに記録されている証明書拡張機能が列挙されます。

構文

HRESULT EnumerateExtensionsSetup(
  [in] LONG Flags
);

パラメーター

[in] Flags

このパラメーターは予約済みであり、0 に設定する必要があります。

戻り値

VB

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

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

解説

このメソッドを使用する前に 、ICertServerExit::SetContext を呼び出す必要があります。

// Set the context. The value nContext (long) would be the same
// as the context parameter in ICertExit::Notify.
// hr is defined as an HRESULT.
hr = pCertServerExit->SetContext( nContext );
if (FAILED(hr))
{
    printf("Failed SetContext [%x]\n", hr);
    goto error;
}

// Setup the enumeration.
hr = pCertServerExit->EnumerateExtensionsSetup( 0 );
if (FAILED(hr))
{
    printf("Failed EnumerateExtensionsSetup [%x]\n", hr);
    goto error;
}

要件

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

関連項目

ICertServerExit

ICertServerExit::EnumerateExtensions

ICertServerExit::EnumerateExtensionsClose