CreateHandler (Windows Embedded CE 6.0)
1/6/2010
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 RegisterEditor function.
- 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
CreateHandler and DeleteHandler cannot invoke any helper functions other than QueryInfoSession because of synchronization considerations.
Requirements
Header | natedit.h |
Library | coredll.dll |
Windows Embedded CE | Windows CE 3.0 and later |
See Also
Reference
Network Address Translation Functions
DeleteHandler
QueryInfoSession
RegisterEditor