Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function is called by the network address translation (NAT) driver when a mapping associated with an editor is removed.

Syntax

NTSTATUS DeleteHandler( 
  PVOID 
InterfaceHandle, 
  PVOID 
SessionHandle, 
  PVOID 
EditorContext, 
  PVOID 
EditorSessionContext 
)

Parameters

InterfaceHandle

[in] Handle to an interface.

SessionHandle

[in] Handle to the session. Use this handle when calling the QueryInfoSessionfunction.

EditorContext

[in] Pointer to a context that the NAT editor supplied when the editor called the RegisterEditorfunction.

EditorSessionContext

[in] Pointer to the context of the session mapping that the editor supplied when the editor called the CreateHandlerfunction.

Return Value

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

Remarks

CreateHandlerand DeleteHandlercannot invoke any helper functions other than QueryInfoSessionbecause of synchronization considerations.

Requirements

Header natedit.h
Library coredll.dll
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also