ICertStore::CloseHandle method

[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, and Windows XP.]

The CloseHandle method closes an HCERTSTORE handle acquired through the StoreHandle property.

Syntax

CertStore.CloseHandle( _
  ByVal hCertStore _
)

Parameters

hCertStore [in]

The HCERTSTORE handle to be closed.

Return value

The return value is an HRESULT. A value of S_OK indicates success. Any other value indicates that the operation failed.

Remarks

This method does not release the HCERTSTORE handle contained within a Store object. It should be used only to release a HCERTSTORE handle acquired through the StoreHandle property.

Requirements

Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

ICertStore