Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function obtains statistics for a session.
NTSTATUS QueryInfoSession(PVOIDSessionHandle,PULONGPrivateAddress,PUSHORTPrivatePort,PULONGRemoteAddress,PUSHORTRemotePort,PULONGPublicAddress,PUSHORTPublicPort,PIP_NAT_SESSION_MAPPING_STATISTICSStatistics)
Parameters
- SessionHandle
[in] Handle to the session for which you want to obtain statistics. - PrivateAddress
[out] Pointer to an unsigned long integer that receives the IP address of the private endpoint for the session. This parameter is optional. - PrivatePort
[out] Pointer to an unsigned short integer that receives the protocol port of the private endpoint for the session. This parameter is optional. - RemoteAddress
[out] Pointer to an unsigned long integer that receives the IP address of the remote endpoint for the session. This parameter is optional. - RemotePort
[out] Pointer to an unsigned short integer that receives the protocol port of the remote endpoint for the session. This parameter is optional. - PublicAddress
[out] Pointer to an unsigned long integer that receives the IP address of the public endpoint for the session. This parameter is optional. - PublicPort
[out] Pointer to an unsigned short integer that receives the protocol port of the public endpoint for the session. This parameter is optional. - Statistics
[out] Pointer to an IP_NAT_SESSION_MAPPING_STATISTICS structure that receives the statistics for the session. This parameter is optional.
Return Values
STATUS_SUCCESS indicates success. A non-zero value indicates failure.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Natedit.h.
Link Library: Coredll.dll.
See Also
IP_NAT_SESSION_MAPPING_STATISTICS
Send Feedback on this topic to the authors