Compartir a través de


TDI_DATAGRAM_INFO structure

The TDI_DATAGRAM_INFO structure defines the structure of the information returned for a TDI_QUERY_INFORMATION request in which IrpSp->Parameters is cast to a pointer to a TDI_REQUEST_KERNEL_QUERY_INFORMATION structure. The request sets the QueryType member of TDI_REQUEST_KERNEL_QUERY_INFORMATION to the TDI_QUERY_DATAGRAM_INFO query type.

Syntax

typedef struct _TDI_DATAGRAM_INFO {
  ULONG MaximumDatagramBytes;
  ULONG MaximumDatagramCount;
} TDI_DATAGRAM_INFO, *PTDI_DATAGRAM_INFO;

Members

  • MaximumDatagramBytes
    Specifies the maximum size in bytes for a datagram.

  • MaximumDatagramCount
    Specifies the maximum number of active datagrams.

Remarks

Any kernel-mode client that has opened a control channel can make a query to determine the transport's limits on datagram size and activity. Such a client sets up an IRP with TdiBuildQueryInformation, passing in the QType TDI_QUERY_DATAGRAM_INFO, and submits the IRP to the underlying transport to get this information.

A transport also can support this query on open transport addresses at the discretion of the transport writer.

TDI_DATAGRAM_INFO defines the format in which the transport returns the requested information for such a query.

Note   The TDI feature is deprecated and will be removed in future versions of Microsoft Windows. Depending on how you use TDI, use either the Winsock Kernel (WSK) or Windows Filtering Platform (WFP). For more information about WFP and WSK, see Windows Filtering Platform and Winsock Kernel. For a Windows Core Networking blog entry about WSK and TDI, see Introduction to Winsock Kernel (WSK).

 

Requirements

Header

Tdi.h (include Tdi.h or TdiKrnl.h)

See also

TdiBuildQueryInformation

TdiDispatchInternalDeviceControl

TDI_MAX_DATAGRAM_INFO

TDI_QUERY_INFORMATION

TDI_PROVIDER_INFO

TRANSPORT_ADDRESS

 

 

Send comments about this topic to Microsoft