DECLAREINTEGER CryptReleaseContext IN advapi32;
[in] Handle of a cryptographic service provider (CSP) created by a call to CryptAcquireContext.
[in] Reserved for future use and must be zero. If dwFlags is not set to zero, this function returns FALSE but the CSP is released.
If the function succeeds, the return value is nonzero (TRUE).
At each call to this function, the reference count on the CSP is reduced by one. When the reference count reaches zero, the context is fully released and it can no longer be used by any function in the application.
After this function has been called, the CSP session is finished and all existing session keys and hash objects created using the hProv handle become invalid. In practice, all of these objects should be destroyed with calls to CryptDestroyKey and CryptDestroyHash before CryptReleaseContext is called.