CryptMsgClose

The CryptMsgClose function closes a handle to a cryptographic message.

#include <wincrypt.h>
BOOL WINAPI CryptMsgClose(
  HCRYPTMSG hCryptMsg      // in
);
 

Parameters

hCryptMsg
The cryptographic message handle to be closed.

Return Values

If the function fails, the return value is FALSE (zero). If it succeeds, the return value is TRUE (non-zero).

To retrieve extended error information, use the GetLastError function.

LastError is preserved.

Example

See Signed Message Example Code.

See Enveloped Message Example 1.

See Hashed Message Example Code.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later. Available also in IE 3.02 and later.
  Windows: Requires Windows 98 (or Windows 95 with IE 3.02 or later).
  Windows CE: Unsupported.
  Header: Declared in wincrypt.h.
  Import Library: Use crypt32.lib.

See Also

CryptMsgOpenToEncode, CryptMsgOpenToDecode