DeleteTicket

This function removes a NAT editor port mapping.

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 following values:

    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

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later Natedit.h Natedit.h Coredll.dll

See Also

CreateTicket

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.