The AttachCurrentSecurityContext method retrieves security context information from a specific certificate.
Type: | Long |
Run time: | read/write |
object.AttachCurrentSecurityContext
Syntax Element | Description |
---|---|
object | Message (MSMQMessage) object that defines the message. |
Security context information can be retrieved from the security certificate specified by SenderCertificate. SenderCertificate can specify an external certificate or an internal certificate.
Although the sending application can explicitly retrieve security context information from the security certificate, AttachCurrentSecurityContext can retrieve and cache the needed information using a single call, then automatically pass the information along with the message when it is sent.
For information on how MSMQ authenticates messages, see Message Authentication.
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.