CryptUninstallDefaultContext function

Important  This API is deprecated. New and existing software should start using Cryptography Next Generation APIs. Microsoft may remove this API in future releases.
 
The CryptUninstallDefaultContext function removes a default context previously installed by CryptInstallDefaultContext. This function will block until any threads currently using this context finish, if the default context was installed with CRYPT_DEFAULT_CONTEXT_PROCESS_FLAG set.

Syntax

BOOL CryptUninstallDefaultContext(
  HCRYPTDEFAULTCONTEXT hDefaultContext,
  DWORD                dwFlags,
  void                 *pvReserved
);

Parameters

hDefaultContext

Handle of the context to be released.

dwFlags

Reserved for future use.

pvReserved

Reserved for future use.

Return Value

If the function succeeds, the return value is nonzero (TRUE) .If the function fails, the return value is zero (FALSE). For extended error information, call GetLastError.

Requirements

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