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. |
This function is called by the NAT driver when a mapping associated with a registered editor is created.
Syntax
NTSTATUS CreateHandler( PVOID EditorContext, ULONG PrivateAddress, USHORT PrivatePort, ULONG PublicAddress, USHORT PublicPort, ULONG RemoteAddress, USHORT RemotePort, PVOID* EditorSessionContextp ) |
Parameters
- EditorContext
-
[in] Pointer to a context that the NAT editor supplied when the editor called the RegisterEditorfunction.
- PrivateAddress
-
[in] Unsigned long integer that specifies the private address for mapping.
- PrivatePort
-
[in] Unsigned short integer that specifies the private port for mapping.
- PublicAddress
-
[in] Unsigned long integer that specifies the public address for mapping.
- PublicPort
-
[in] Unsigned short integer that specifies the public port for mapping.
- RemoteAddress
-
[in] Unsigned long integer that specifies the remote host address for mapping.
- RemotePort
-
[in] Unsigned short integer that specifies the remote host port for mapping.
- EditorSessionContextp
-
[out] Pointer to a context to pass to subsequent callback functions, such as DeleteHandler, associated with this session mapping. This parameter is optional.
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 |