The PeerTokenAccessMask field is a ULONG in SOCKET_SECURITY_QUERY_TEMPLATE.
I need to set it to some value to get PeerApplicationAccessTokenHandle and/or PeerMachineAccessTokenHandle.
However I cannot find anywhere how that mask field can be set.
There is no constant definitions anywhere and specifying anything except zero gives me error 10022 (invalid argument) from WSAQuerySocketSecurity().
How can I set that PeerTokenAccessMask correctly to be able to get the token handles?