ReactOS  0.4.14-dev-114-gc8cbd56
tdikrnl.h File Reference
#include "tdi.h"
Include dependency graph for tdikrnl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _TDI_REQUEST_KERNEL
 
struct  _TDI_REQUEST_KERNEL_ASSOCIATE
 
struct  _TDI_REQUEST_KERNEL_ACCEPT
 
struct  _TDI_REQUEST_KERNEL_RECEIVE
 
struct  _TDI_REQUEST_KERNEL_RECEIVEDG
 
struct  _TDI_REQUEST_KERNEL_SEND
 
struct  _TDI_REQUEST_KERNEL_SENDDG
 
struct  _TDI_REQUEST_KERNEL_SET_EVENT
 
struct  _TDI_REQUEST_KERNEL_QUERY_INFO
 
struct  _TDI_REQUEST_KERNEL_SET_INFO
 
struct  _TDI_PNP_CONTEXT
 
struct  _TDI20_CLIENT_INTERFACE_INFO
 

Macros

#define TDIKRNLAPI   DECLSPEC_IMPORT
 
#define TDI_ASSOCIATE_ADDRESS   0x01
 
#define TDI_DISASSOCIATE_ADDRESS   0x02
 
#define TDI_CONNECT   0x03
 
#define TDI_LISTEN   0x04
 
#define TDI_ACCEPT   0x05
 
#define TDI_DISCONNECT   0x06
 
#define TDI_SEND   0x07
 
#define TDI_RECEIVE   0x08
 
#define TDI_SEND_DATAGRAM   0x09
 
#define TDI_RECEIVE_DATAGRAM   0x0A
 
#define TDI_SET_EVENT_HANDLER   0x0B
 
#define TDI_QUERY_INFORMATION   0x0C
 
#define TDI_SET_INFORMATION   0x0D
 
#define TDI_ACTION   0x0E
 
#define TDI_DIRECT_SEND   0x27
 
#define TDI_DIRECT_SEND_DATAGRAM   0x29
 
#define TDI_TRANSPORT_ADDRESS_FILE   1
 
#define TDI_CONNECTION_FILE   2
 
#define TDI_CONTROL_CHANNEL_FILE   3
 
#define IOCTL_TDI_QUERY_DIRECT_SEND_HANDLER   _TDI_CONTROL_CODE(0x80, METHOD_NEITHER)
 
#define IOCTL_TDI_QUERY_DIRECT_SENDDG_HANDLER   _TDI_CONTROL_CODE(0x81, METHOD_NEITHER)
 
#define TDI_EVENT_CONNECT   0
 
#define TDI_EVENT_DISCONNECT   1
 
#define TDI_EVENT_ERROR   2
 
#define TDI_EVENT_RECEIVE   3
 
#define TDI_EVENT_RECEIVE_DATAGRAM   4
 
#define TDI_EVENT_RECEIVE_EXPEDITED   5
 
#define TDI_EVENT_SEND_POSSIBLE   6
 
#define TDI_EVENT_CHAINED_RECEIVE   7
 
#define TDI_EVENT_CHAINED_RECEIVE_DATAGRAM   8
 
#define TDI_EVENT_CHAINED_RECEIVE_EXPEDITED   9
 
#define TDI_EVENT_ERROR_EX   10
 
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
 
#define TdiBuildAccept( Irp, DevObj, FileObj, CompRoutine, Contxt, RequestConnectionInfo, ReturnConnectionInfo)
 
#define TdiBuildAction( Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr)
 
#define TdiBuildAssociateAddress( Irp, DevObj, FileObj, CompRoutine, Contxt, AddrHandle)
 
#define TdiBuildConnect( Irp, DevObj, FileObj, CompRoutine, Contxt, Time, RequestConnectionInfo, ReturnConnectionInfo)
 
#define TdiBuildDisassociateAddress( Irp, DevObj, FileObj, CompRoutine, Contxt)
 
#define TdiBuildDisconnect( Irp, DevObj, FileObj, CompRoutine, Contxt, Time, Flags, RequestConnectionInfo, ReturnConnectionInfo)
 
#define TdiBuildInternalDeviceControlIrp(IrpSubFunction, DeviceObject, FileObject, Event, IoStatusBlock)
 
#define TdiBuildListen( Irp, DevObj, FileObj, CompRoutine, Contxt, Flags, RequestConnectionInfo, ReturnConnectionInfo)
 
#define TdiBuildQueryInformation( Irp, DevObj, FileObj, CompRoutine, Contxt, QType, MdlAddr)
 
#define TdiBuildReceive( Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr, InFlags, ReceiveLen)
 
#define TdiBuildReceiveDatagram( Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr, ReceiveLen, ReceiveDatagramInfo, ReturnInfo, InFlags)
 
#define TdiBuildSend( Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr, InFlags, SendLen)
 
#define TdiBuildSendDatagram( Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr, SendLen, SendDatagramInfo)
 
#define TdiBuildSetEventHandler( Irp, DevObj, FileObj, CompRoutine, Contxt, InEventType, InEventHandler, InEventContext)
 
#define TdiBuildSetInformation( Irp, DevObj, FileObj, CompRoutine, Contxt, SType, MdlAddr)
 
#define TDI_CURRENT_MAJOR_VERSION   2
 
#define TDI_CURRENT_MINOR_VERSION   0
 
#define TDI_CURRENT_VERSION
 
#define TDI_VERSION_ONE   0x0001
 
#define TDI_PNP_CONTEXT_TYPE_IF_NAME   0x1
 
#define TDI_PNP_CONTEXT_TYPE_IF_ADDR   0x2
 
#define TDI_PNP_CONTEXT_TYPE_PDO   0x3
 
#define TDI_PNP_CONTEXT_TYPE_FIRST_OR_LAST_IF   0x4
 
#define TdiCompleteRequest(Irp, Status)
 
#define TdiCopyLookaheadData(Destination, Source, Length, ReceiveFlags)   RtlCopyMemory(Destination, Source, Length)
 

Typedefs

typedef struct _TDI_REQUEST_KERNEL TDI_REQUEST_KERNEL
 
typedef struct _TDI_REQUEST_KERNELPTDI_REQUEST_KERNEL
 
typedef struct _TDI_REQUEST_KERNEL_ASSOCIATE TDI_REQUEST_KERNEL_ASSOCIATE
 
typedef struct _TDI_REQUEST_KERNEL_ASSOCIATEPTDI_REQUEST_KERNEL_ASSOCIATE
 
typedef TDI_REQUEST_KERNEL TDI_REQUEST_KERNEL_DISASSOCIATE
 
typedef TDI_REQUEST_KERNELPTDI_REQUEST_KERNEL_DISASSOCIATE
 
typedef struct _TDI_REQUEST_KERNEL_ACCEPT TDI_REQUEST_KERNEL_ACCEPT
 
typedef struct _TDI_REQUEST_KERNEL_ACCEPTPTDI_REQUEST_KERNEL_ACCEPT
 
typedef TDI_REQUEST_KERNEL TDI_REQUEST_KERNEL_CONNECT
 
typedef TDI_REQUEST_KERNELPTDI_REQUEST_KERNEL_CONNECT
 
typedef TDI_REQUEST_KERNEL TDI_REQUEST_KERNEL_DISCONNECT
 
typedef TDI_REQUEST_KERNELPTDI_REQUEST_KERNEL_DISCONNECT
 
typedef TDI_REQUEST_KERNEL TDI_REQUEST_KERNEL_LISTEN
 
typedef TDI_REQUEST_KERNELPTDI_REQUEST_KERNEL_LISTEN
 
typedef struct _TDI_REQUEST_KERNEL_RECEIVE TDI_REQUEST_KERNEL_RECEIVE
 
typedef struct _TDI_REQUEST_KERNEL_RECEIVEPTDI_REQUEST_KERNEL_RECEIVE
 
typedef struct _TDI_REQUEST_KERNEL_RECEIVEDG TDI_REQUEST_KERNEL_RECEIVEDG
 
typedef struct _TDI_REQUEST_KERNEL_RECEIVEDGPTDI_REQUEST_KERNEL_RECEIVEDG
 
typedef struct _TDI_REQUEST_KERNEL_SEND TDI_REQUEST_KERNEL_SEND
 
typedef struct _TDI_REQUEST_KERNEL_SENDPTDI_REQUEST_KERNEL_SEND
 
typedef struct _TDI_REQUEST_KERNEL_SENDDG TDI_REQUEST_KERNEL_SENDDG
 
typedef struct _TDI_REQUEST_KERNEL_SENDDGPTDI_REQUEST_KERNEL_SENDDG
 
typedef struct _TDI_REQUEST_KERNEL_SET_EVENT TDI_REQUEST_KERNEL_SET_EVENT
 
typedef struct _TDI_REQUEST_KERNEL_SET_EVENTPTDI_REQUEST_KERNEL_SET_EVENT
 
typedef struct _TDI_REQUEST_KERNEL_QUERY_INFO TDI_REQUEST_KERNEL_QUERY_INFORMATION
 
typedef struct _TDI_REQUEST_KERNEL_QUERY_INFOPTDI_REQUEST_KERNEL_QUERY_INFORMATION
 
typedef struct _TDI_REQUEST_KERNEL_SET_INFO TDI_REQUEST_KERNEL_SET_INFORMATION
 
typedef struct _TDI_REQUEST_KERNEL_SET_INFOPTDI_REQUEST_KERNEL_SET_INFORMATION
 
typedef NTSTATUS(NTAPIPTDI_IND_CONNECT) (_In_opt_ PVOID TdiEventContext, _In_ LONG RemoteAddressLength, _In_reads_bytes_(RemoteAddressLength) PVOID RemoteAddress, _In_ LONG UserDataLength, _In_reads_bytes_opt_(UserDataLength) PVOID UserData, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _Out_ CONNECTION_CONTEXT *ConnectionContext, _Out_ PIRP *AcceptIrp)
 
typedef NTSTATUS(NTAPIPTDI_IND_DISCONNECT) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ LONG DisconnectDataLength, _In_reads_bytes_opt_(DisconnectDataLength) PVOID DisconnectData, _In_ LONG DisconnectInformationLength, _In_reads_bytes_opt_(DisconnectInformationLength) PVOID DisconnectInformation, _In_ ULONG DisconnectFlags)
 
typedef NTSTATUS(NTAPIPTDI_IND_ERROR) (_In_opt_ PVOID TdiEventContext, _In_ NTSTATUS Status)
 
typedef NTSTATUS(NTAPIPTDI_IND_ERROR_EX) (_In_opt_ PVOID TdiEventContext, _In_ NTSTATUS Status, _In_ PVOID Buffer)
 
typedef NTSTATUS(NTAPIPTDI_IND_RECEIVE) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
typedef NTSTATUS(NTAPIPTDI_IND_RECEIVE_DATAGRAM) (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
typedef NTSTATUS(NTAPIPTDI_IND_RECEIVE_EXPEDITED) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
typedef NTSTATUS(NTAPIPTDI_IND_CHAINED_RECEIVE) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
typedef NTSTATUS(NTAPIPTDI_IND_CHAINED_RECEIVE_DATAGRAM) (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG ReceiveDatagramLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
typedef NTSTATUS(NTAPIPTDI_IND_CHAINED_RECEIVE_EXPEDITED) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
typedef NTSTATUS(NTAPIPTDI_IND_SEND_POSSIBLE) (_In_opt_ PVOID TdiEventContext, _In_opt_ PVOID ConnectionContext, _In_ ULONG BytesAvailable)
 
typedef enum _TDI_PNP_OPCODE TDI_PNP_OPCODE
 
typedef struct _TDI_PNP_CONTEXT TDI_PNP_CONTEXT
 
typedef struct _TDI_PNP_CONTEXTPTDI_PNP_CONTEXT
 
typedef VOID(NTAPITDI_ADD_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address)
 
typedef VOID(NTAPITDI_ADD_ADDRESS_HANDLER_V2) (_In_ PTA_ADDRESS Address, _In_ PUNICODE_STRING DeviceName, _In_ PTDI_PNP_CONTEXT Context)
 
typedef VOID(NTAPITDI_BINDING_HANDLER) (_In_ TDI_PNP_OPCODE PnPOpcode, _In_ PUNICODE_STRING DeviceName, _In_ PWSTR MultiSZBindList)
 
typedef VOID(NTAPITDI_BIND_HANDLER) (_In_ PUNICODE_STRING DeviceName)
 
typedef VOID(NTAPITDI_DEL_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address)
 
typedef VOID(NTAPITDI_DEL_ADDRESS_HANDLER_V2) (_In_ PTA_ADDRESS Address, _In_ PUNICODE_STRING DeviceName, _In_ PTDI_PNP_CONTEXT Context)
 
typedef NTSTATUS(NTAPITDI_PNP_POWER_HANDLER) (_In_ PUNICODE_STRING DeviceName, _In_ PNET_PNP_EVENT PowerEvent, _In_ PTDI_PNP_CONTEXT Context1, _In_ PTDI_PNP_CONTEXT Context2)
 
typedef VOID(NTAPITDI_UNBIND_HANDLER) (_In_ PUNICODE_STRING DeviceName)
 
typedef VOID(NTAPIProviderPnPPowerComplete) (_In_ PNET_PNP_EVENT NetEvent, _In_ NTSTATUS ProviderStatus)
 
typedef struct _TDI20_CLIENT_INTERFACE_INFO TDI20_CLIENT_INTERFACE_INFO
 
typedef struct _TDI20_CLIENT_INTERFACE_INFOPTDI20_CLIENT_INTERFACE_INFO
 
typedef TDI20_CLIENT_INTERFACE_INFO TDI_CLIENT_INTERFACE_INFO
 
typedef TDI_CLIENT_INTERFACE_INFOPTDI_CLIENT_INTERFACE_INFO
 

Enumerations

enum  _TDI_PNP_OPCODE {
  TDI_PNP_OP_MIN, TDI_PNP_OP_ADD, TDI_PNP_OP_DEL, TDI_PNP_OP_UPDATE,
  TDI_PNP_OP_PROVIDERREADY, TDI_PNP_OP_NETREADY, TDI_PNP_OP_ADD_IGNORE_BINDING, TDI_PNP_OP_DELETE_IGNORE_BINDING,
  TDI_PNP_OP_MAX
}
 

Functions

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultConnectHandler (_In_opt_ PVOID TdiEventContext, _In_ LONG RemoteAddressLength, _In_reads_bytes_(RemoteAddressLength) PVOID RemoteAddress, _In_ LONG UserDataLength, _In_reads_bytes_opt_(UserDataLength) PVOID UserData, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _Out_ CONNECTION_CONTEXT *ConnectionContext, _Out_ PIRP *AcceptIrp)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultDisconnectHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ LONG DisconnectDataLength, _In_reads_bytes_opt_(DisconnectDataLength) PVOID DisconnectData, _In_ LONG DisconnectInformationLength, _In_reads_bytes_opt_(DisconnectInformationLength) PVOID DisconnectInformation, _In_ ULONG DisconnectFlags)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultErrorHandler (_In_opt_ PVOID TdiEventContext, _In_ NTSTATUS Status)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultReceiveHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultRcvDatagramHandler (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultRcvExpeditedHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedReceiveHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedRcvDatagramHandler (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG ReceiveDatagramLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedRcvExpeditedHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)
 
TDIKRNLAPI NTSTATUS NTAPI TdiDefaultSendPossibleHandler (_In_opt_ PVOID TdiEventContext, _In_opt_ PVOID ConnectionContext, _In_ ULONG BytesAvailable)
 
TDIKRNLAPI VOID NTAPI TdiBuildNetbiosAddress (_In_ PUCHAR NetbiosName, _In_ BOOLEAN IsGroupName, _Inout_ PTA_NETBIOS_ADDRESS NetworkName)
 
TDIKRNLAPI NTSTATUS NTAPI TdiBuildNetbiosAddressEa (_Out_ PUCHAR Buffer, _In_ BOOLEAN IsGroupName, _In_ PUCHAR NetbiosName)
 
 _IRQL_requires_max_ (DISPATCH_LEVEL) TDIKRNLAPI NTSTATUS NTAPI TdiCopyBufferToMdl(_In_ PVOID SourceBuffer
 
_In_ ULONG _Out_writes_bytes_ (DestinationBufferSize) PVOID DestinationBuffer
 
TDIKRNLAPI NTSTATUS NTAPI TdiDeregisterAddressChangeHandler (_In_ HANDLE BindingHandle)
 
 _IRQL_requires_max_ (APC_LEVEL) TDIKRNLAPI NTSTATUS NTAPI TdiDeregisterDeviceObject(_In_ HANDLE DevRegistrationHandle)
 
 _IRQL_requires_max_ (PASSIVE_LEVEL) TDIKRNLAPI VOID NTAPI TdiInitialize(VOID)
 
TDIKRNLAPI VOID NTAPI TdiMapBuffer (_In_ PMDL MdlChain)
 
TDIKRNLAPI BOOLEAN NTAPI TdiMatchPdoWithChainedReceiveContext (_In_ PVOID TsduDescriptor, _In_ PVOID PDO)
 
TDIKRNLAPI NTSTATUS NTAPI TdiRegisterAddressChangeHandler (_In_ TDI_ADD_ADDRESS_HANDLER AddHandler, _In_ TDI_DEL_ADDRESS_HANDLER DeleteHandler, _Out_ HANDLE *BindingHandle)
 
TDIKRNLAPI NTSTATUS NTAPI TdiRegisterNotificationHandler (_In_ TDI_BIND_HANDLER BindHandler, _In_ TDI_UNBIND_HANDLER UnbindHandler, _Out_ HANDLE *BindingHandle)
 
TDIKRNLAPI VOID NTAPI TdiUnmapBuffer (_In_ PMDL MdlChain)
 

Variables

_In_ ULONG SourceOffset
 
_In_ ULONG _In_ ULONG SourceBytesToCopy
 
_In_ ULONG _In_ ULONG _In_ PMDL DestinationMdlChain
 
_In_ ULONG _In_ ULONG _In_ PMDL _In_ ULONG DestinationOffset
 
_In_ ULONG _In_ ULONG _In_ PMDL _In_ ULONG _Out_ PULONG BytesCopied
 
_In_ ULONG _In_ ULONG _In_ ULONG DestinationBufferSize
 
_In_ PIRP Irp
 
_In_ PIRP _In_ PIO_STACK_LOCATION IrpSp
 
_In_ PNET_PNP_EVENT PowerEvent
 
_In_ PNET_PNP_EVENT _In_ NTSTATUS Status
 
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT Context1
 
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT _In_ PTDI_PNP_CONTEXT Context2
 
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT _In_ PTDI_PNP_CONTEXT _In_ ProviderPnPPowerComplete ProtocolCompletionHandler
 
_Out_ HANDLEDevRegistrationHandle
 
_In_ PUNICODE_STRING DeviceName
 
_In_ PUNICODE_STRING _In_ PTDI_PNP_CONTEXT Context
 
_In_ PUNICODE_STRING _In_ PTDI_PNP_CONTEXT _Out_ HANDLEAddrRegistrationHandle
 
_In_ ULONG InterfaceInfoSize
 
_In_ ULONG _Out_ HANDLEBindingHandle
 
_Out_ HANDLEProviderHandle
 
_In_ ULONG NumberOfTsdus
 

Macro Definition Documentation

◆ IOCTL_TDI_QUERY_DIRECT_SEND_HANDLER

#define IOCTL_TDI_QUERY_DIRECT_SEND_HANDLER   _TDI_CONTROL_CODE(0x80, METHOD_NEITHER)

Definition at line 70 of file tdikrnl.h.

◆ IOCTL_TDI_QUERY_DIRECT_SENDDG_HANDLER

#define IOCTL_TDI_QUERY_DIRECT_SENDDG_HANDLER   _TDI_CONTROL_CODE(0x81, METHOD_NEITHER)

Definition at line 71 of file tdikrnl.h.

◆ TDI_ACCEPT

#define TDI_ACCEPT   0x05

Definition at line 51 of file tdikrnl.h.

◆ TDI_ACTION

#define TDI_ACTION   0x0E

Definition at line 60 of file tdikrnl.h.

◆ TDI_ASSOCIATE_ADDRESS

#define TDI_ASSOCIATE_ADDRESS   0x01

Definition at line 47 of file tdikrnl.h.

◆ TDI_CONNECT

#define TDI_CONNECT   0x03

Definition at line 49 of file tdikrnl.h.

◆ TDI_CONNECTION_FILE

#define TDI_CONNECTION_FILE   2

Definition at line 66 of file tdikrnl.h.

◆ TDI_CONTROL_CHANNEL_FILE

#define TDI_CONTROL_CHANNEL_FILE   3

Definition at line 67 of file tdikrnl.h.

◆ TDI_CURRENT_MAJOR_VERSION

#define TDI_CURRENT_MAJOR_VERSION   2

Definition at line 838 of file tdikrnl.h.

◆ TDI_CURRENT_MINOR_VERSION

#define TDI_CURRENT_MINOR_VERSION   0

Definition at line 839 of file tdikrnl.h.

◆ TDI_CURRENT_VERSION

#define TDI_CURRENT_VERSION
Value:
#define TDI_CURRENT_MAJOR_VERSION
Definition: tdikrnl.h:838
#define TDI_CURRENT_MINOR_VERSION
Definition: tdikrnl.h:839

Definition at line 841 of file tdikrnl.h.

◆ TDI_DIRECT_SEND

#define TDI_DIRECT_SEND   0x27

Definition at line 62 of file tdikrnl.h.

◆ TDI_DIRECT_SEND_DATAGRAM

#define TDI_DIRECT_SEND_DATAGRAM   0x29

Definition at line 63 of file tdikrnl.h.

◆ TDI_DISASSOCIATE_ADDRESS

#define TDI_DISASSOCIATE_ADDRESS   0x02

Definition at line 48 of file tdikrnl.h.

◆ TDI_DISCONNECT

#define TDI_DISCONNECT   0x06

Definition at line 52 of file tdikrnl.h.

◆ TDI_EVENT_CHAINED_RECEIVE

#define TDI_EVENT_CHAINED_RECEIVE   7

Definition at line 153 of file tdikrnl.h.

◆ TDI_EVENT_CHAINED_RECEIVE_DATAGRAM

#define TDI_EVENT_CHAINED_RECEIVE_DATAGRAM   8

Definition at line 154 of file tdikrnl.h.

◆ TDI_EVENT_CHAINED_RECEIVE_EXPEDITED

#define TDI_EVENT_CHAINED_RECEIVE_EXPEDITED   9

Definition at line 155 of file tdikrnl.h.

◆ TDI_EVENT_CONNECT

#define TDI_EVENT_CONNECT   0

Definition at line 146 of file tdikrnl.h.

◆ TDI_EVENT_DISCONNECT

#define TDI_EVENT_DISCONNECT   1

Definition at line 147 of file tdikrnl.h.

◆ TDI_EVENT_ERROR

#define TDI_EVENT_ERROR   2

Definition at line 148 of file tdikrnl.h.

◆ TDI_EVENT_ERROR_EX

#define TDI_EVENT_ERROR_EX   10

Definition at line 156 of file tdikrnl.h.

◆ TDI_EVENT_RECEIVE

#define TDI_EVENT_RECEIVE   3

Definition at line 149 of file tdikrnl.h.

◆ TDI_EVENT_RECEIVE_DATAGRAM

#define TDI_EVENT_RECEIVE_DATAGRAM   4

Definition at line 150 of file tdikrnl.h.

◆ TDI_EVENT_RECEIVE_EXPEDITED

#define TDI_EVENT_RECEIVE_EXPEDITED   5

Definition at line 151 of file tdikrnl.h.

◆ TDI_EVENT_SEND_POSSIBLE

#define TDI_EVENT_SEND_POSSIBLE   6

Definition at line 152 of file tdikrnl.h.

◆ TDI_LISTEN

#define TDI_LISTEN   0x04

Definition at line 50 of file tdikrnl.h.

◆ TDI_PNP_CONTEXT_TYPE_FIRST_OR_LAST_IF

#define TDI_PNP_CONTEXT_TYPE_FIRST_OR_LAST_IF   0x4

Definition at line 862 of file tdikrnl.h.

◆ TDI_PNP_CONTEXT_TYPE_IF_ADDR

#define TDI_PNP_CONTEXT_TYPE_IF_ADDR   0x2

Definition at line 860 of file tdikrnl.h.

◆ TDI_PNP_CONTEXT_TYPE_IF_NAME

#define TDI_PNP_CONTEXT_TYPE_IF_NAME   0x1

Definition at line 859 of file tdikrnl.h.

◆ TDI_PNP_CONTEXT_TYPE_PDO

#define TDI_PNP_CONTEXT_TYPE_PDO   0x3

Definition at line 861 of file tdikrnl.h.

◆ TDI_QUERY_INFORMATION

#define TDI_QUERY_INFORMATION   0x0C

Definition at line 58 of file tdikrnl.h.

◆ TDI_RECEIVE

#define TDI_RECEIVE   0x08

Definition at line 54 of file tdikrnl.h.

◆ TDI_RECEIVE_DATAGRAM

#define TDI_RECEIVE_DATAGRAM   0x0A

Definition at line 56 of file tdikrnl.h.

◆ TDI_SEND

#define TDI_SEND   0x07

Definition at line 53 of file tdikrnl.h.

◆ TDI_SEND_DATAGRAM

#define TDI_SEND_DATAGRAM   0x09

Definition at line 55 of file tdikrnl.h.

◆ TDI_SET_EVENT_HANDLER

#define TDI_SET_EVENT_HANDLER   0x0B

Definition at line 57 of file tdikrnl.h.

◆ TDI_SET_INFORMATION

#define TDI_SET_INFORMATION   0x0D

Definition at line 59 of file tdikrnl.h.

◆ TDI_TRANSPORT_ADDRESS_FILE

#define TDI_TRANSPORT_ADDRESS_FILE   1

Definition at line 65 of file tdikrnl.h.

◆ TDI_VERSION_ONE

#define TDI_VERSION_ONE   0x0001

Definition at line 844 of file tdikrnl.h.

◆ TdiBuildAccept

#define TdiBuildAccept (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  RequestConnectionInfo,
  ReturnConnectionInfo 
)
Value:
{ \
PTDI_REQUEST_KERNEL_ACCEPT _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_ACCEPT); \
\
_Request = (PTDI_REQUEST_KERNEL_ACCEPT)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = (RequestConnectionInfo); \
_Request->ReturnConnectionInformation = (ReturnConnectionInfo); \
}
struct _TDI_REQUEST_KERNEL_ACCEPT * PTDI_REQUEST_KERNEL_ACCEPT
_In_ PIRP Irp
Definition: csq.h:116
#define TDI_ACCEPT
Definition: tdikrnl.h:51
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647

Definition at line 417 of file tdikrnl.h.

◆ TdiBuildAction

#define TdiBuildAction (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  MdlAddr 
)
Value:
{ \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_ACTION); \
\
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_ACTION
Definition: tdikrnl.h:60
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069

Definition at line 444 of file tdikrnl.h.

◆ TdiBuildAssociateAddress

#define TdiBuildAssociateAddress (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  AddrHandle 
)
Value:
{ \
PTDI_REQUEST_KERNEL_ASSOCIATE _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_ASSOCIATE_ADDRESS); \
\
_Request = (PTDI_REQUEST_KERNEL_ASSOCIATE)&_IrpSp->Parameters; \
_Request->AddressHandle = (HANDLE)(AddrHandle); \
}
struct _TDI_REQUEST_KERNEL_ASSOCIATE * PTDI_REQUEST_KERNEL_ASSOCIATE
#define TDI_ASSOCIATE_ADDRESS
Definition: tdikrnl.h:47
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647

Definition at line 467 of file tdikrnl.h.

◆ TdiBuildBaseIrp

#define TdiBuildBaseIrp (   bIrp,
  bDevObj,
  bFileObj,
  bCompRoutine,
  bContxt,
  bIrpSp,
  bMinor 
)
Value:
{ \
bIrpSp->MajorFunction = IRP_MJ_INTERNAL_DEVICE_CONTROL; \
bIrpSp->MinorFunction = (bMinor); \
bIrpSp->DeviceObject = (bDevObj); \
bIrpSp->FileObject = (bFileObj); \
if (bCompRoutine) \
{ \
IoSetCompletionRoutine(bIrp, bCompRoutine, bContxt, TRUE, TRUE, TRUE);\
} \
}
#define TRUE
Definition: types.h:120
#define IoSetCompletionRoutine(_Irp, _CompletionRoutine, _Context, _InvokeOnSuccess, _InvokeOnError, _InvokeOnCancel)
Definition: irp.cpp:515
smooth NULL
Definition: ftsmooth.c:416
#define IRP_MJ_INTERNAL_DEVICE_CONTROL

Definition at line 391 of file tdikrnl.h.

◆ TdiBuildConnect

#define TdiBuildConnect (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  Time,
  RequestConnectionInfo,
  ReturnConnectionInfo 
)
Value:
{ \
PTDI_REQUEST_KERNEL _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_CONNECT); \
\
_Request = (PTDI_REQUEST_KERNEL)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = (RequestConnectionInfo); \
_Request->ReturnConnectionInformation = (ReturnConnectionInfo); \
_Request->RequestSpecific = (PVOID)(Time); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_CONNECT
Definition: tdikrnl.h:49
void * PVOID
Definition: retypes.h:9
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
struct _TDI_REQUEST_KERNEL * PTDI_REQUEST_KERNEL
static PLARGE_INTEGER Time
Definition: time.c:105

Definition at line 494 of file tdikrnl.h.

◆ TdiBuildDisassociateAddress

#define TdiBuildDisassociateAddress (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt 
)
Value:
{ \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_DISASSOCIATE_ADDRESS); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
#define TDI_DISASSOCIATE_ADDRESS
Definition: tdikrnl.h:48

Definition at line 521 of file tdikrnl.h.

◆ TdiBuildDisconnect

#define TdiBuildDisconnect (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  Time,
  Flags,
  RequestConnectionInfo,
  ReturnConnectionInfo 
)
Value:
{ \
PTDI_REQUEST_KERNEL _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_DISCONNECT); \
\
_Request = (PTDI_REQUEST_KERNEL)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = (RequestConnectionInfo); \
_Request->ReturnConnectionInformation = (ReturnConnectionInfo); \
_Request->RequestSpecific = (PVOID)(Time); \
_Request->RequestFlags = (Flags); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define TDI_DISCONNECT
Definition: tdikrnl.h:52
void * PVOID
Definition: retypes.h:9
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
struct _TDI_REQUEST_KERNEL * PTDI_REQUEST_KERNEL
static PLARGE_INTEGER Time
Definition: time.c:105

Definition at line 545 of file tdikrnl.h.

◆ TdiBuildInternalDeviceControlIrp

#define TdiBuildInternalDeviceControlIrp (   IrpSubFunction,
  DeviceObject,
  FileObject,
  Event,
  IoStatusBlock 
)
Value:
IrpSubFunction, DeviceObject, \
NULL, 0, NULL, 0, \
#define TRUE
Definition: types.h:120
smooth NULL
Definition: ftsmooth.c:416
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
PIRP NTAPI IoBuildDeviceIoControlRequest(IN ULONG IoControlCode, IN PDEVICE_OBJECT DeviceObject, IN PVOID InputBuffer, IN ULONG InputBufferLength, IN PVOID OutputBuffer, IN ULONG OutputBufferLength, IN BOOLEAN InternalDeviceIoControl, IN PKEVENT Event, IN PIO_STATUS_BLOCK IoStatusBlock)
Definition: irp.c:881

Definition at line 573 of file tdikrnl.h.

◆ TdiBuildListen

#define TdiBuildListen (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  Flags,
  RequestConnectionInfo,
  ReturnConnectionInfo 
)
Value:
{ \
PTDI_REQUEST_KERNEL _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_LISTEN); \
\
_Request = (PTDI_REQUEST_KERNEL)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = (RequestConnectionInfo); \
_Request->ReturnConnectionInformation = (ReturnConnectionInfo); \
_Request->RequestFlags = (Flags); \
}
#define TDI_LISTEN
Definition: tdikrnl.h:50
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
struct _TDI_REQUEST_KERNEL * PTDI_REQUEST_KERNEL

Definition at line 593 of file tdikrnl.h.

◆ TdiBuildQueryInformation

#define TdiBuildQueryInformation (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  QType,
  MdlAddr 
)
Value:
{ \
PTDI_REQUEST_KERNEL_QUERY_INFORMATION _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_QUERY_INFORMATION); \
\
_Request = (PTDI_REQUEST_KERNEL_QUERY_INFORMATION)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = NULL; \
_Request->QueryType = (ULONG)(QType); \
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
struct _TDI_REQUEST_KERNEL_QUERY_INFO * PTDI_REQUEST_KERNEL_QUERY_INFORMATION
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
smooth NULL
Definition: ftsmooth.c:416
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
#define TDI_QUERY_INFORMATION
Definition: tdikrnl.h:58
_In_ PIRP Irp
Definition: tdikrnl.h:1069
unsigned int ULONG
Definition: retypes.h:1

Definition at line 638 of file tdikrnl.h.

◆ TdiBuildReceive

#define TdiBuildReceive (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  MdlAddr,
  InFlags,
  ReceiveLen 
)
Value:
{ \
PTDI_REQUEST_KERNEL_RECEIVE _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_RECEIVE); \
\
_Request = (PTDI_REQUEST_KERNEL_RECEIVE)&_IrpSp->Parameters; \
_Request->ReceiveFlags = (InFlags); \
_Request->ReceiveLength = (ReceiveLen); \
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_RECEIVE
Definition: tdikrnl.h:54
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069
struct _TDI_REQUEST_KERNEL_RECEIVE * PTDI_REQUEST_KERNEL_RECEIVE

Definition at line 667 of file tdikrnl.h.

◆ TdiBuildReceiveDatagram

#define TdiBuildReceiveDatagram (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  MdlAddr,
  ReceiveLen,
  ReceiveDatagramInfo,
  ReturnInfo,
  InFlags 
)
Value:
{ \
PTDI_REQUEST_KERNEL_RECEIVEDG _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_RECEIVE_DATAGRAM); \
\
_Request = (PTDI_REQUEST_KERNEL_RECEIVEDG)&_IrpSp->Parameters; \
_Request->ReceiveDatagramInformation = (ReceiveDatagramInfo); \
_Request->ReturnDatagramInformation = (ReturnInfo); \
_Request->ReceiveLength = (ReceiveLen); \
_Request->ReceiveFlags = (InFlags); \
(Irp)->MdlAddress = (MdlAddr); \
}
struct _TDI_REQUEST_KERNEL_RECEIVEDG * PTDI_REQUEST_KERNEL_RECEIVEDG
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_RECEIVE_DATAGRAM
Definition: tdikrnl.h:56
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069

Definition at line 699 of file tdikrnl.h.

◆ TdiBuildSend

#define TdiBuildSend (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  MdlAddr,
  InFlags,
  SendLen 
)
Value:
{ \
PTDI_REQUEST_KERNEL_SEND _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_SEND); \
\
_Request = (PTDI_REQUEST_KERNEL_SEND)&_IrpSp->Parameters; \
_Request->SendFlags = (InFlags); \
_Request->SendLength = (SendLen); \
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
struct _TDI_REQUEST_KERNEL_SEND * PTDI_REQUEST_KERNEL_SEND
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069
#define TDI_SEND
Definition: tdikrnl.h:53

Definition at line 731 of file tdikrnl.h.

◆ TdiBuildSendDatagram

#define TdiBuildSendDatagram (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  MdlAddr,
  SendLen,
  SendDatagramInfo 
)
Value:
{ \
PTDI_REQUEST_KERNEL_SENDDG _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_SEND_DATAGRAM); \
\
_Request = (PTDI_REQUEST_KERNEL_SENDDG)&_IrpSp->Parameters; \
_Request->SendDatagramInformation = (SendDatagramInfo); \
_Request->SendLength = (SendLen); \
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
struct _TDI_REQUEST_KERNEL_SENDDG * PTDI_REQUEST_KERNEL_SENDDG
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069
#define TDI_SEND_DATAGRAM
Definition: tdikrnl.h:55

Definition at line 761 of file tdikrnl.h.

◆ TdiBuildSetEventHandler

#define TdiBuildSetEventHandler (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  InEventType,
  InEventHandler,
  InEventContext 
)
Value:
{ \
PTDI_REQUEST_KERNEL_SET_EVENT _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_SET_EVENT_HANDLER); \
\
_Request = (PTDI_REQUEST_KERNEL_SET_EVENT)&_IrpSp->Parameters; \
_Request->EventType = (InEventType); \
_Request->EventHandler = (PVOID)(InEventHandler); \
_Request->EventContext = (PVOID)(InEventContext); \
}
struct _TDI_REQUEST_KERNEL_SET_EVENT * PTDI_REQUEST_KERNEL_SET_EVENT
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_SET_EVENT_HANDLER
Definition: tdikrnl.h:57
void * PVOID
Definition: retypes.h:9
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647

Definition at line 791 of file tdikrnl.h.

◆ TdiBuildSetInformation

#define TdiBuildSetInformation (   Irp,
  DevObj,
  FileObj,
  CompRoutine,
  Contxt,
  SType,
  MdlAddr 
)
Value:
{ \
PTDI_REQUEST_KERNEL_SET_INFORMATION _Request; \
PIO_STACK_LOCATION _IrpSp; \
\
TdiBuildBaseIrp(Irp, DevObj, FileObj, CompRoutine, \
Contxt, _IrpSp, TDI_SET_INFORMATION); \
\
_Request = (PTDI_REQUEST_KERNEL_SET_INFORMATION)&_IrpSp->Parameters; \
_Request->RequestConnectionInformation = NULL; \
_Request->SetType = (ULONG)(SType); \
(Irp)->MdlAddress = (MdlAddr); \
}
_In_ PIRP Irp
Definition: csq.h:116
#define TdiBuildBaseIrp( bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor)
Definition: tdikrnl.h:391
#define TDI_SET_INFORMATION
Definition: tdikrnl.h:59
struct _TDI_REQUEST_KERNEL_SET_INFO * PTDI_REQUEST_KERNEL_SET_INFORMATION
smooth NULL
Definition: ftsmooth.c:416
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2647
_In_ PIRP Irp
Definition: tdikrnl.h:1069
unsigned int ULONG
Definition: retypes.h:1

Definition at line 820 of file tdikrnl.h.

◆ TdiCompleteRequest

#define TdiCompleteRequest (   Irp,
  Status 
)
Value:
{ \
(Irp)->IoStatus.Status = (Status); \
IoCompleteRequest((Irp), IO_NETWORK_INCREMENT); \
}
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG IN BOOLEAN OUT PIO_STATUS_BLOCK IoStatus
Definition: fatprocs.h:2650
_In_ PIRP Irp
Definition: csq.h:116
#define IO_NETWORK_INCREMENT
Definition: tcpip.h:43
Status
Definition: gdiplustypes.h:24
_In_ PIRP Irp
Definition: tdikrnl.h:1069

Definition at line 958 of file tdikrnl.h.

◆ TdiCopyLookaheadData

#define TdiCopyLookaheadData (   Destination,
  Source,
  Length,
  ReceiveFlags 
)    RtlCopyMemory(Destination, Source, Length)

Definition at line 984 of file tdikrnl.h.

◆ TDIKRNLAPI

#define TDIKRNLAPI   DECLSPEC_IMPORT

Definition at line 35 of file tdikrnl.h.

Typedef Documentation

◆ ProviderPnPPowerComplete

typedef VOID(NTAPI * ProviderPnPPowerComplete) (_In_ PNET_PNP_EVENT NetEvent, _In_ NTSTATUS ProviderStatus)

Definition at line 912 of file tdikrnl.h.

◆ PTDI20_CLIENT_INTERFACE_INFO

◆ PTDI_CLIENT_INTERFACE_INFO

Definition at line 947 of file tdikrnl.h.

◆ PTDI_IND_CHAINED_RECEIVE

typedef NTSTATUS(NTAPI * PTDI_IND_CHAINED_RECEIVE) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)

Definition at line 302 of file tdikrnl.h.

◆ PTDI_IND_CHAINED_RECEIVE_DATAGRAM

typedef NTSTATUS(NTAPI * PTDI_IND_CHAINED_RECEIVE_DATAGRAM) (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG ReceiveDatagramLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)

Definition at line 324 of file tdikrnl.h.

◆ PTDI_IND_CHAINED_RECEIVE_EXPEDITED

typedef NTSTATUS(NTAPI * PTDI_IND_CHAINED_RECEIVE_EXPEDITED) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG ReceiveLength, _In_ ULONG StartingOffset, _In_ PMDL Tsdu, _In_ PVOID TsduDescriptor)

Definition at line 352 of file tdikrnl.h.

◆ PTDI_IND_CONNECT

typedef NTSTATUS(NTAPI * PTDI_IND_CONNECT) (_In_opt_ PVOID TdiEventContext, _In_ LONG RemoteAddressLength, _In_reads_bytes_(RemoteAddressLength) PVOID RemoteAddress, _In_ LONG UserDataLength, _In_reads_bytes_opt_(UserDataLength) PVOID UserData, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _Out_ CONNECTION_CONTEXT *ConnectionContext, _Out_ PIRP *AcceptIrp)

Definition at line 159 of file tdikrnl.h.

◆ PTDI_IND_DISCONNECT

typedef NTSTATUS(NTAPI * PTDI_IND_DISCONNECT) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ LONG DisconnectDataLength, _In_reads_bytes_opt_(DisconnectDataLength) PVOID DisconnectData, _In_ LONG DisconnectInformationLength, _In_reads_bytes_opt_(DisconnectInformationLength) PVOID DisconnectInformation, _In_ ULONG DisconnectFlags)

Definition at line 185 of file tdikrnl.h.

◆ PTDI_IND_ERROR

typedef NTSTATUS(NTAPI * PTDI_IND_ERROR) (_In_opt_ PVOID TdiEventContext, _In_ NTSTATUS Status)

Definition at line 207 of file tdikrnl.h.

◆ PTDI_IND_ERROR_EX

typedef NTSTATUS(NTAPI * PTDI_IND_ERROR_EX) (_In_opt_ PVOID TdiEventContext, _In_ NTSTATUS Status, _In_ PVOID Buffer)

Definition at line 212 of file tdikrnl.h.

◆ PTDI_IND_RECEIVE

typedef NTSTATUS(NTAPI * PTDI_IND_RECEIVE) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)

Definition at line 225 of file tdikrnl.h.

◆ PTDI_IND_RECEIVE_DATAGRAM

typedef NTSTATUS(NTAPI * PTDI_IND_RECEIVE_DATAGRAM) (_In_opt_ PVOID TdiEventContext, _In_ LONG SourceAddressLength, _In_reads_bytes_(SourceAddressLength) PVOID SourceAddress, _In_ LONG OptionsLength, _In_reads_bytes_opt_(OptionsLength) PVOID Options, _In_ ULONG ReceiveDatagramFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)

Definition at line 249 of file tdikrnl.h.

◆ PTDI_IND_RECEIVE_EXPEDITED

typedef NTSTATUS(NTAPI * PTDI_IND_RECEIVE_EXPEDITED) (_In_opt_ PVOID TdiEventContext, _In_opt_ CONNECTION_CONTEXT ConnectionContext, _In_ ULONG ReceiveFlags, _In_ ULONG BytesIndicated, _In_ ULONG BytesAvailable, _Out_ ULONG *BytesTaken, _In_ PVOID Tsdu, _Out_opt_ PIRP *IoRequestPacket)

Definition at line 278 of file tdikrnl.h.

◆ PTDI_IND_SEND_POSSIBLE

typedef NTSTATUS(NTAPI * PTDI_IND_SEND_POSSIBLE) (_In_opt_ PVOID TdiEventContext, _In_opt_ PVOID ConnectionContext, _In_ ULONG BytesAvailable)

Definition at line 374 of file tdikrnl.h.

◆ PTDI_PNP_CONTEXT

◆ PTDI_REQUEST_KERNEL

◆ PTDI_REQUEST_KERNEL_ACCEPT

◆ PTDI_REQUEST_KERNEL_ASSOCIATE

◆ PTDI_REQUEST_KERNEL_CONNECT

Definition at line 89 of file tdikrnl.h.

◆ PTDI_REQUEST_KERNEL_DISASSOCIATE

Definition at line 79 of file tdikrnl.h.

◆ PTDI_REQUEST_KERNEL_DISCONNECT

Definition at line 93 of file tdikrnl.h.

◆ PTDI_REQUEST_KERNEL_LISTEN

Definition at line 97 of file tdikrnl.h.

◆ PTDI_REQUEST_KERNEL_QUERY_INFORMATION

◆ PTDI_REQUEST_KERNEL_RECEIVE

◆ PTDI_REQUEST_KERNEL_RECEIVEDG

◆ PTDI_REQUEST_KERNEL_SEND

◆ PTDI_REQUEST_KERNEL_SENDDG

◆ PTDI_REQUEST_KERNEL_SET_EVENT

◆ PTDI_REQUEST_KERNEL_SET_INFORMATION

◆ TDI20_CLIENT_INTERFACE_INFO

◆ TDI_ADD_ADDRESS_HANDLER

typedef VOID(NTAPI * TDI_ADD_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address)

Definition at line 871 of file tdikrnl.h.

◆ TDI_ADD_ADDRESS_HANDLER_V2

Definition at line 875 of file tdikrnl.h.

◆ TDI_BIND_HANDLER

typedef VOID(NTAPI * TDI_BIND_HANDLER) (_In_ PUNICODE_STRING DeviceName)

Definition at line 887 of file tdikrnl.h.

◆ TDI_BINDING_HANDLER

typedef VOID(NTAPI * TDI_BINDING_HANDLER) (_In_ TDI_PNP_OPCODE PnPOpcode, _In_ PUNICODE_STRING DeviceName, _In_ PWSTR MultiSZBindList)

Definition at line 881 of file tdikrnl.h.

◆ TDI_CLIENT_INTERFACE_INFO

◆ TDI_DEL_ADDRESS_HANDLER

typedef VOID(NTAPI * TDI_DEL_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address)

Definition at line 891 of file tdikrnl.h.

◆ TDI_DEL_ADDRESS_HANDLER_V2

Definition at line 895 of file tdikrnl.h.

◆ TDI_PNP_CONTEXT

◆ TDI_PNP_OPCODE

◆ TDI_PNP_POWER_HANDLER

◆ TDI_REQUEST_KERNEL

◆ TDI_REQUEST_KERNEL_ACCEPT

◆ TDI_REQUEST_KERNEL_ASSOCIATE

◆ TDI_REQUEST_KERNEL_CONNECT

Definition at line 89 of file tdikrnl.h.

◆ TDI_REQUEST_KERNEL_DISASSOCIATE

Definition at line 79 of file tdikrnl.h.

◆ TDI_REQUEST_KERNEL_DISCONNECT

Definition at line 93 of file tdikrnl.h.

◆ TDI_REQUEST_KERNEL_LISTEN

Definition at line 97 of file tdikrnl.h.

◆ TDI_REQUEST_KERNEL_QUERY_INFORMATION

◆ TDI_REQUEST_KERNEL_RECEIVE

◆ TDI_REQUEST_KERNEL_RECEIVEDG

◆ TDI_REQUEST_KERNEL_SEND

◆ TDI_REQUEST_KERNEL_SENDDG

◆ TDI_REQUEST_KERNEL_SET_EVENT

◆ TDI_REQUEST_KERNEL_SET_INFORMATION

◆ TDI_UNBIND_HANDLER

typedef VOID(NTAPI * TDI_UNBIND_HANDLER) (_In_ PUNICODE_STRING DeviceName)

Definition at line 908 of file tdikrnl.h.

Enumeration Type Documentation

◆ _TDI_PNP_OPCODE

Enumerator
TDI_PNP_OP_MIN 
TDI_PNP_OP_ADD 
TDI_PNP_OP_DEL 
TDI_PNP_OP_UPDATE 
TDI_PNP_OP_PROVIDERREADY 
TDI_PNP_OP_NETREADY 
TDI_PNP_OP_ADD_IGNORE_BINDING 
TDI_PNP_OP_DELETE_IGNORE_BINDING 
TDI_PNP_OP_MAX 

Definition at line 846 of file tdikrnl.h.

Function Documentation

◆ _IRQL_requires_max_() [1/3]

_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 30 of file rmap.c.

36 {
38 }
#define TAG_RMAP
Definition: tag.h:133
#define P(row, col)
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099

◆ _IRQL_requires_max_() [2/3]

_IRQL_requires_max_ ( APC_LEVEL  )

◆ _IRQL_requires_max_() [3/3]

_IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 64 of file Messaging.c.

75 {
76  PFLT_SERVER_PORT_OBJECT PortObject;
78 
79  /* The caller must allow at least one connection */
80  if (MaxConnections == 0)
81  {
83  }
84 
85  /* The request must be for a kernel handle */
86  if (!(ObjectAttributes->Attributes & OBJ_KERNEL_HANDLE))
87  {
89  }
90 
91  /*
92  * Get rundown protection on the target to stop the owner
93  * from unloading whilst this port object is open. It gets
94  * removed in the FltpServerPortClose callback
95  */
97  if (!NT_SUCCESS(Status))
98  {
99  return Status;
100  }
101 
102  /* Create the server port object for this filter */
106  KernelMode,
107  NULL,
108  sizeof(FLT_SERVER_PORT_OBJECT),
109  0,
110  0,
111  (PVOID *)&PortObject);
112  if (NT_SUCCESS(Status))
113  {
114  /* Zero out the struct */
115  RtlZeroMemory(PortObject, sizeof(FLT_SERVER_PORT_OBJECT));
116 
117  /* Increment the ref count on the target filter */
119 
120  /* Setup the filter port object */
121  PortObject->Filter = Filter;
122  PortObject->ConnectNotify = ConnectNotifyCallback;
124  PortObject->MessageNotify = MessageNotifyCallback;
125  PortObject->Cookie = ServerPortCookie;
126  PortObject->MaxConnections = MaxConnections;
127 
128  /* Insert the object */
129  Status = ObInsertObject(PortObject,
130  NULL,
132  0,
133  NULL,
135  if (NT_SUCCESS(Status))
136  {
137  /* Lock the connection list */
139 
140  /* Add the new port object to the connection list and increment the count */
143 
144  /* Unlock the connection list*/
146  }
147  }
148 
149  if (!NT_SUCCESS(Status))
150  {
151  /* Allow the filter to be cleaned up */
153  }
154 
155  return Status;
156 }
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _Outptr_ PFLT_PORT * ServerPort
Definition: fltkernel.h:1873
PFLT_CONNECT_NOTIFY ConnectNotify
Definition: fltmgrint.h:191
VOID FLTAPI FltObjectDereference(_Inout_ PVOID Object)
Definition: Object.c:53
LONG NTSTATUS
Definition: precomp.h:26
#define InsertTailList(ListHead, Entry)
VOID FASTCALL ExReleaseFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:31
ULONG FltpObjectPointerReference(_In_ PFLT_OBJECT Object)
Definition: Object.c:322
LIST_ENTRY mList
Definition: fltmgrint.h:56
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
#define FILE_READ_DATA
Definition: nt_native.h:628
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS NTAPI ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL, IN POBJECT_TYPE Type, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN KPROCESSOR_MODE AccessMode, IN OUT PVOID ParseContext OPTIONAL, IN ULONG ObjectSize, IN ULONG PagedPoolCharge OPTIONAL, IN ULONG NonPagedPoolCharge OPTIONAL, OUT PVOID *Object)
Definition: oblife.c:952
POBJECT_TYPE ServerPortObjectType
Definition: Messaging.c:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback
Definition: fltkernel.h:1873
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback
Definition: fltkernel.h:1873
Status
Definition: gdiplustypes.h:24
NTSTATUS NTAPI ObInsertObject(IN PVOID Object, IN PACCESS_STATE AccessState OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG ObjectPointerBias, OUT PVOID *NewObject OPTIONAL, OUT PHANDLE Handle)
Definition: obhandle.c:2932
#define STANDARD_RIGHTS_ALL
Definition: nt_native.h:69
VOID FASTCALL ExAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:23
NTSTATUS FLTAPI FltObjectReference(_Inout_ PVOID Object)
Definition: Object.c:41
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID ServerPortCookie
Definition: fltkernel.h:1873
FAST_MUTEX mLock
Definition: fltmgrint.h:55
PFLT_MESSAGE_NOTIFY MessageNotify
Definition: fltmgrint.h:193
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY _In_ LONG MaxConnections
Definition: fltkernel.h:1873
PFLT_DISCONNECT_NOTIFY DisconnectNotify
Definition: fltmgrint.h:192
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback
Definition: fltkernel.h:1873
FLT_MUTEX_LIST_HEAD ConnectionList
Definition: fltmgrint.h:121

◆ _Out_writes_bytes_()

_In_ ULONG _Out_writes_bytes_ ( DestinationBufferSize  )

◆ TdiBuildNetbiosAddress()

TDIKRNLAPI VOID NTAPI TdiBuildNetbiosAddress ( _In_ PUCHAR  NetbiosName,
_In_ BOOLEAN  IsGroupName,
_Inout_ PTA_NETBIOS_ADDRESS  NetworkName 
)

◆ TdiBuildNetbiosAddressEa()

TDIKRNLAPI NTSTATUS NTAPI TdiBuildNetbiosAddressEa ( _Out_ PUCHAR  Buffer,
_In_ BOOLEAN  IsGroupName,
_In_ PUCHAR  NetbiosName 
)

◆ TdiDefaultChainedRcvDatagramHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedRcvDatagramHandler ( _In_opt_ PVOID  TdiEventContext,
_In_ LONG  SourceAddressLength,
_In_reads_bytes_(SourceAddressLength) PVOID  SourceAddress,
_In_ LONG  OptionsLength,
_In_reads_bytes_opt_(OptionsLength) PVOID  Options,
_In_ ULONG  ReceiveDatagramFlags,
_In_ ULONG  ReceiveDatagramLength,
_In_ ULONG  StartingOffset,
_In_ PMDL  Tsdu,
_In_ PVOID  TsduDescriptor 
)

◆ TdiDefaultChainedRcvExpeditedHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedRcvExpeditedHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ CONNECTION_CONTEXT  ConnectionContext,
_In_ ULONG  ReceiveFlags,
_In_ ULONG  ReceiveLength,
_In_ ULONG  StartingOffset,
_In_ PMDL  Tsdu,
_In_ PVOID  TsduDescriptor 
)

◆ TdiDefaultChainedReceiveHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultChainedReceiveHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ CONNECTION_CONTEXT  ConnectionContext,
_In_ ULONG  ReceiveFlags,
_In_ ULONG  ReceiveLength,
_In_ ULONG  StartingOffset,
_In_ PMDL  Tsdu,
_In_ PVOID  TsduDescriptor 
)

◆ TdiDefaultConnectHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultConnectHandler ( _In_opt_ PVOID  TdiEventContext,
_In_ LONG  RemoteAddressLength,
_In_reads_bytes_(RemoteAddressLength) PVOID  RemoteAddress,
_In_ LONG  UserDataLength,
_In_reads_bytes_opt_(UserDataLength) PVOID  UserData,
_In_ LONG  OptionsLength,
_In_reads_bytes_opt_(OptionsLength) PVOID  Options,
_Out_ CONNECTION_CONTEXT ConnectionContext,
_Out_ PIRP AcceptIrp 
)

◆ TdiDefaultDisconnectHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultDisconnectHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ CONNECTION_CONTEXT  ConnectionContext,
_In_ LONG  DisconnectDataLength,
_In_reads_bytes_opt_(DisconnectDataLength) PVOID  DisconnectData,
_In_ LONG  DisconnectInformationLength,
_In_reads_bytes_opt_(DisconnectInformationLength) PVOID  DisconnectInformation,
_In_ ULONG  DisconnectFlags 
)

◆ TdiDefaultErrorHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultErrorHandler ( _In_opt_ PVOID  TdiEventContext,
_In_ NTSTATUS  Status 
)

◆ TdiDefaultRcvDatagramHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultRcvDatagramHandler ( _In_opt_ PVOID  TdiEventContext,
_In_ LONG  SourceAddressLength,
_In_reads_bytes_(SourceAddressLength) PVOID  SourceAddress,
_In_ LONG  OptionsLength,
_In_reads_bytes_opt_(OptionsLength) PVOID  Options,
_In_ ULONG  ReceiveDatagramFlags,
_In_ ULONG  BytesIndicated,
_In_ ULONG  BytesAvailable,
_Out_ ULONG BytesTaken,
_In_ PVOID  Tsdu,
_Out_opt_ PIRP IoRequestPacket 
)

◆ TdiDefaultRcvExpeditedHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultRcvExpeditedHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ CONNECTION_CONTEXT  ConnectionContext,
_In_ ULONG  ReceiveFlags,
_In_ ULONG  BytesIndicated,
_In_ ULONG  BytesAvailable,
_Out_ ULONG BytesTaken,
_In_ PVOID  Tsdu,
_Out_opt_ PIRP IoRequestPacket 
)

◆ TdiDefaultReceiveHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultReceiveHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ CONNECTION_CONTEXT  ConnectionContext,
_In_ ULONG  ReceiveFlags,
_In_ ULONG  BytesIndicated,
_In_ ULONG  BytesAvailable,
_Out_ ULONG BytesTaken,
_In_ PVOID  Tsdu,
_Out_opt_ PIRP IoRequestPacket 
)

◆ TdiDefaultSendPossibleHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDefaultSendPossibleHandler ( _In_opt_ PVOID  TdiEventContext,
_In_opt_ PVOID  ConnectionContext,
_In_ ULONG  BytesAvailable 
)

◆ TdiDeregisterAddressChangeHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiDeregisterAddressChangeHandler ( _In_ HANDLE  BindingHandle)

◆ TdiMapBuffer()

TDIKRNLAPI VOID NTAPI TdiMapBuffer ( _In_ PMDL  MdlChain)

◆ TdiMatchPdoWithChainedReceiveContext()

TDIKRNLAPI BOOLEAN NTAPI TdiMatchPdoWithChainedReceiveContext ( _In_ PVOID  TsduDescriptor,
_In_ PVOID  PDO 
)

◆ TdiRegisterAddressChangeHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiRegisterAddressChangeHandler ( _In_ TDI_ADD_ADDRESS_HANDLER  AddHandler,
_In_ TDI_DEL_ADDRESS_HANDLER  DeleteHandler,
_Out_ HANDLE BindingHandle 
)

◆ TdiRegisterNotificationHandler()

TDIKRNLAPI NTSTATUS NTAPI TdiRegisterNotificationHandler ( _In_ TDI_BIND_HANDLER  BindHandler,
_In_ TDI_UNBIND_HANDLER  UnbindHandler,
_Out_ HANDLE BindingHandle 
)

◆ TdiUnmapBuffer()

TDIKRNLAPI VOID NTAPI TdiUnmapBuffer ( _In_ PMDL  MdlChain)

Variable Documentation

◆ AddrRegistrationHandle

Definition at line 1128 of file tdikrnl.h.

◆ BindingHandle

_In_ ULONG _Out_ HANDLE* BindingHandle

Definition at line 1146 of file tdikrnl.h.

Referenced by CM_Add_Empty_Log_Conf_Ex(), CM_Add_ID_ExW(), CM_Create_DevNode_ExW(), CM_Delete_Class_Key_Ex(), CM_Delete_DevNode_Key_Ex(), CM_Disable_DevNode_Ex(), CM_Enable_DevNode_Ex(), CM_Enumerate_Classes_Ex(), CM_Enumerate_Enumerators_ExW(), CM_Free_Log_Conf_Ex(), CM_Get_Child_Ex(), CM_Get_Class_Name_ExW(), CM_Get_Class_Registry_PropertyW(), CM_Get_Depth_Ex(), CM_Get_Device_ID_List_ExW(), CM_Get_Device_ID_List_Size_ExW(), CM_Get_Device_Interface_Alias_ExW(), CM_Get_Device_Interface_List_ExW(), CM_Get_Device_Interface_List_Size_ExW(), CM_Get_DevNode_Custom_Property_ExW(), CM_Get_DevNode_Registry_Property_ExW(), CM_Get_DevNode_Status_Ex(), CM_Get_First_Log_Conf_Ex(), CM_Get_Global_State_Ex(), CM_Get_Hardware_Profile_Info_ExW(), CM_Get_HW_Prof_Flags_ExW(), CM_Get_Log_Conf_Priority_Ex(), CM_Get_Next_Log_Conf_Ex(), CM_Get_Parent_Ex(), CM_Get_Sibling_Ex(), CM_Get_Version_Ex(), CM_Is_Dock_Station_Present_Ex(), CM_Is_Version_Available_Ex(), CM_Locate_DevNode_ExW(), CM_Move_DevNode_Ex(), CM_Open_DevNode_Key_Ex(), CM_Query_And_Remove_SubTree_ExW(), CM_Query_Arbitrator_Free_Data_Ex(), CM_Query_Arbitrator_Free_Size_Ex(), CM_Query_Resource_Conflict_List(), CM_Reenumerate_DevNode_Ex(), CM_Register_Device_Driver_Ex(), CM_Register_Device_Interface_ExW(), CM_Request_Device_Eject_ExW(), CM_Request_Eject_PC_Ex(), CM_Run_Detection_Ex(), CM_Set_DevNode_Problem_Ex(), CM_Set_DevNode_Registry_Property_ExW(), CM_Set_HW_Prof_Ex(), CM_Set_HW_Prof_Flags_ExW(), CM_Setup_DevNode_Ex(), CM_Uninstall_DevNode_Ex(), CM_Unregister_Device_Interface_ExW(), CMP_GetBlockedDriverInfo(), CMP_GetServerSideDeviceInstallFlags(), CMP_Init_Detection(), CMP_RegisterNotification(), CMP_Report_LogOn(), CMP_UnregisterNotification(), CMP_WaitServicesAvailable(), GetDeviceInstanceKeyPath(), NetAddAlternateComputerName(), NetGetJoinableOUs(), NetJoinDomain(), NetRemoveAlternateComputerName(), NetRenameMachineInDomain(), NetSetPrimaryComputerName(), NetUnjoinDomain(), NetValidateName(), PnpBindRpc(), PnpGetLocalHandles(), PnpUnbindRpc(), RpcBindingSetOption(), RpcImpersonateClient(), RpcMgmtSetComTimeout(), RpcRevertToSelfEx(), and SamrGetDomainPasswordInformation().

◆ BytesCopied

Definition at line 970 of file tdikrnl.h.

◆ Context

◆ Context1

◆ Context2

◆ DestinationBufferSize

_In_ ULONG _In_ ULONG _In_ ULONG DestinationBufferSize

Definition at line 1006 of file tdikrnl.h.

Referenced by SacTranslateUnicodeToUtf8().

◆ DestinationMdlChain

_In_ ULONG _In_ PMDL DestinationMdlChain

Definition at line 970 of file tdikrnl.h.

◆ DestinationOffset

_In_ ULONG _In_ ULONG DestinationOffset

Definition at line 970 of file tdikrnl.h.

◆ DeviceName

_In_ PUNICODE_STRING DeviceName

Definition at line 1128 of file tdikrnl.h.

◆ DevRegistrationHandle

_Out_ HANDLE* DevRegistrationHandle

Definition at line 1120 of file tdikrnl.h.

◆ InterfaceInfoSize

_In_ ULONG InterfaceInfoSize

Definition at line 1146 of file tdikrnl.h.

◆ Irp

Definition at line 1069 of file tdikrnl.h.

◆ IrpSp

Definition at line 1069 of file tdikrnl.h.

◆ NumberOfTsdus

_In_ ULONG NumberOfTsdus

Definition at line 1163 of file tdikrnl.h.

◆ PowerEvent

_In_ PNET_PNP_EVENT PowerEvent

Definition at line 1085 of file tdikrnl.h.

◆ ProtocolCompletionHandler

◆ ProviderHandle

_Out_ HANDLE* ProviderHandle

Definition at line 1155 of file tdikrnl.h.

◆ SourceBytesToCopy

_In_ ULONG _In_ ULONG SourceBytesToCopy

Definition at line 970 of file tdikrnl.h.

◆ SourceOffset

_In_ ULONG SourceOffset

Definition at line 970 of file tdikrnl.h.

◆ Status

Definition at line 1085 of file tdikrnl.h.