Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function removes a default context previously installed by the CryptInstallDefaultContextfunction. If the default context was installed with CRYPT_DEFAULT_CONTEXT_PROCESS_FLAG set, this function will block until any threads currently using this context finish.

Syntax

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

Parameters

hDefaultContext

[in] Handle to the context to be freed.

dwFlags

[in] Reserved for future use.

pvReserved

[in] Reserved for future use.

Return Value

If the function succeeds, the return value is nonzero, or TRUE.

If the function fails, the return value is zero, or FALSE.

For extended error information, call the GetLastErrorfunction.

Requirements

Header wincrypt.h
Library crypt32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also