SOCKET_SECURITY_QUERY_INFO structure [Filtering]
The SOCKET_SECURITY_QUERY_INFO structure contains security information returned by the WSAQuerySocketSecurity function.
typedef struct _SOCKET_SECURITY_QUERY_INFO {
SOCKET_SECURITY_PROTOCOL SecurityProtocol;
ULONG Flags;
UINT64 PeerApplicationAccessTokenHandle;
UINT64 PeerMachineAccessTokenHandle;
} SOCKET_SECURITY_QUERY_INFO;
Members
SecurityProtocol
A SOCKET_SECURITY_PROTOCOL value that identifies the protocol used to secure the traffic.Flags
Contains security flags for the connection.Value Meaning SOCKET_INFO_CONNECTION_SECURED
0x00000001If present, traffic is being secured by a security protocol. if absent, the traffic is flowing in the clear. SOCKET_INFO_CONNECTION_ENCRYPTED
0x00000002If present, the connection traffic is being encrypted. The SOCKET_INFO_CONNECTION_SECURED flag is always set when this flag is present. PeerApplicationAccessTokenHandle
Handle to the access token that represents the account under which the peer application is running. After using the token for access checks, the application should close the handle using the CloseHandle function.PeerMachineAccessTokenHandle
Handle to the access token for the peer's machine account during the course of the application. After using the token for access checks, the application should close the handle using the CloseHandle function.
Requirements
| Client | Requires Windows Vista. |
| Server | Requires Windows Server "Longhorn". |
| Header | Declared in Mstcpip.h. |