DisassociateSession

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

NTSTATUS DisassociateSession( 
PVOID EditorHandle, 
PVOID SessionHandle )

Parameters

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

DisassoicateSession 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 network address translation (NAT) continues to occur after you call DisassociateSession. DisassoicateSession is useful for protocols that require you to edit a specific packet early in the session, but not later packets.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later Natedit.h Natedit.h Coredll.dll

See Also

QueryInfoSession

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.