MQFreeSecurityContext

The MQFreeSecurityContext function frees the memory allocated by MQGetSecurityContext or MQGetSecurityContextEx.

ms707042.note(en-us,VS.85).gifNote
For definitions of terms in italics, see the Message Queuing Glossary.

VOID APIENTRY MQFreeSecurityContext(
  HANDLE hSecurityContext  
);

Parameters

hSecurityContext

[in] Handle to the security context structure.

Return Values

None

Remarks

The security context structure is created by MQGetSecurityContext or MQGetSecurityContextEx. It contains a certificate, the private key corresponding to the public key in the certificate, and other information that Message Queuing needs to authenticate messages.

MQFreeSecurityContext and MQSendMessage must all be called within the same user context.

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mq.h.

Library: Use Mqrt.lib.

See Also

Show:
© 2014 Microsoft. All rights reserved.