Partager via


QueryInfoSession

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function obtains statistics for a session.

Syntax

NTSTATUS QueryInfoSession( 
  PVOID SessionHandle, 
  PULONG PrivateAddress, 
  PUSHORT PrivatePort, 
  PULONG RemoteAddress, 
  PUSHORT RemotePort, 
  PULONG PublicAddress, 
  PUSHORT PublicPort, 
  PIP_NAT_SESSION_MAPPING_STATISTICS Statistics 
)

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.

Return Value

STATUS_SUCCESS indicates success. A non-zero value indicates failure.

Requirements

Header natedit.h
Library coredll.dll
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IP_NAT_SESSION_MAPPING_STATISTICS