次の方法で共有


DisassociateSession (Compact 2013)

3/28/2014

This function stops an editor from editing data on a specific session.

Syntax

NTSTATUS DisassociateSession( 
  PVOID EditorHandle, 
  PVOID SessionHandle 
)

Parameters

  • EditorHandle
    [in] Pointer that specifies the handle that identifies the editor to the 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

DisassociateSession maintains all current port mappings. If you initialize a new session after calling DisassociateSession, a new connection is established; the previous connection is not renewed.

Standard NAT continues to occur after you call DisassociateSession. DisassociateSession is useful for protocols that require you to edit a specific packet early in the session, but not later packets.

Requirements

Header

natedit.h

Library

coredll.dll

See Also

Reference

Network Address Translation Functions
QueryInfoSession