TDI_MAX_DATAGRAM_INFO structure

The TDI_MAX_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 the TDI_REQUEST_KERNEL_QUERY_INFORMATION structure to the TDI_QUERY_MAX_DATAGRAM_INFO query type.

Syntax

typedef struct _TDI_MAX_DATAGRAM_INFO {
  ULONG MaxDatagramSize;
} TDI_MAX_DATAGRAM_INFO, *PTDI_MAX_DATAGRAM_INFO;

Members

  • MaxDatagramSize
    Specifies the maximum number of bytes for a datagram.

Remarks

Any kernel-mode client that has opened a control channel can make a query to determine the transport's limits on datagram size. Such a client sets up an IRP with TdiBuildQueryInformation, passing in the QType TDI_QUERY_MAX_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_MAX_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_DATAGRAM_INFO

TDI_QUERY_INFORMATION

TDI_PROVIDER_INFO

TRANSPORT_ADDRESS

 

 

Send comments about this topic to Microsoft