Compartir a través de


DeleteTicket (Windows CE 5.0)

Send Feedback

This function removes a network address translation (NAT) editor port mapping.

NTSTATUS DeleteTicket(PVOIDInterfaceHandle,ULONGPublicAddress,UCHARProtocol,USHORTPublicPort,ULONGRemoteAddress,USHORTRemotePort)

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 Values

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

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Natedit.h.
Link Library: Coredll.dll.

See Also

CreateTicket

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.