次の方法で共有


TimeoutSession (Compact 2013)

3/28/2014

This function causes a session to time out.

Syntax

NTSTATUS TimeoutSession( 
  PVOID EditorHandle, 
  PVOID SessionHandle 
)

Parameters

  • EditorHandle
    [in] Pointer that specifies the handle that identifies the editor to a network address translation (NAT) module.
  • SessionHandle
    [in] Handle to the session. Use this handle when calling the QueryInfoSession function.

Return Value

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

Remarks

Calling TimeoutSession ends the session and removes all of the port mappings for that session. Once the port mappings are removed, no further translation occurs on the session. The NAT driver removes port mappings asynchronously, so translation might not stop immediately.

Requirements

Header

natedit.h

Library

coredll.dll

See Also

Reference

Network Address Translation Functions
QueryInfoSession