Share via


QueryInfoSession (Windows CE 5.0)

Send Feedback

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.