Compartilhar via


DisassociateSession (Windows CE 5.0)

Send Feedback

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

NTSTATUS DisassociateSession(PVOIDEditorHandle,PVOIDSessionHandle)

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 Values

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

OS Versions: Windows CE 3.0 and later.
Header: Natedit.h.
Link Library: Coredll.dll.

See Also

QueryInfoSession

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.