DeleteTicket (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Network Address Translation Functions
CreateTicket