Share via


QueryInfoSession (Compact 2013)

3/28/2014

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

See Also

Reference

Network Address Translation Functions
IP_NAT_SESSION_MAPPING_STATISTICS