CertDuplicateStore function (wincrypt.h)

The CertDuplicateStore function duplicates a store handle by incrementing the store's reference count.

Syntax

HCERTSTORE CertDuplicateStore(
  [in] HCERTSTORE hCertStore
);

Parameters

[in] hCertStore

A handle of the certificate store for which the reference count is being incremented.

Return value

Currently, a copy is not made of the handle, and the returned handle is the same as the handle that was input. If NULL is passed in, the called function will raise an access violation exception.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See also

Certificate Store Functions