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 removes a network address translation (NAT) editor port mapping.

Syntax

NTSTATUS DeleteTicket( 
  PVOID 
InterfaceHandle, 
  ULONG 
PublicAddress, 
  UCHAR 
Protocol, 
  USHORT 
PublicPort, 
  ULONG 
RemoteAddress, 
  USHORT 
RemotePort 
)

Parameters

InterfaceHandle

[in] Handle to an interface.

PublicAddress

[in] Unsigned long integer that specifies the address of the public endpoint for the ticket.

Protocol

[in] Unsigned character that specifies the protocol field of the IP header. It is one of the values in the following table.

Value Description

NAT_PROTOCOL_TCP

Specifies the TCP protocol.

NAT_PROTOCOL_UDP

Specifies the UDP protocol.

PublicPort

[in] Unsigned short integer that specifies the port of the public endpoint for the ticket.

RemoteAddress

[in] Unsigned long integer that specifies the remote address for ticket. This parameter is optional.

RemotePort

[in] Unsigned short integer that specifies the remote port for ticket. This parameter is optional.

Return Value

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

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

Reference

CreateTicket