ReactOS 0.4.16-dev-258-g81860b4
|
#include "tdi.h"
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 |
#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_CURRENT_VERSION |
#define TdiBuildAccept | ( | Irp, | |
DevObj, | |||
FileObj, | |||
CompRoutine, | |||
Contxt, | |||
RequestConnectionInfo, | |||
ReturnConnectionInfo | |||
) |
#define TdiBuildBaseIrp | ( | bIrp, | |
bDevObj, | |||
bFileObj, | |||
bCompRoutine, | |||
bContxt, | |||
bIrpSp, | |||
bMinor | |||
) |
#define TdiBuildConnect | ( | Irp, | |
DevObj, | |||
FileObj, | |||
CompRoutine, | |||
Contxt, | |||
Time, | |||
RequestConnectionInfo, | |||
ReturnConnectionInfo | |||
) |
#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 TdiBuildReceiveDatagram | ( | Irp, | |
DevObj, | |||
FileObj, | |||
CompRoutine, | |||
Contxt, | |||
MdlAddr, | |||
ReceiveLen, | |||
ReceiveDatagramInfo, | |||
ReturnInfo, | |||
InFlags | |||
) |
#define TdiBuildSendDatagram | ( | Irp, | |
DevObj, | |||
FileObj, | |||
CompRoutine, | |||
Contxt, | |||
MdlAddr, | |||
SendLen, | |||
SendDatagramInfo | |||
) |
#define TdiBuildSetEventHandler | ( | Irp, | |
DevObj, | |||
FileObj, | |||
CompRoutine, | |||
Contxt, | |||
InEventType, | |||
InEventHandler, | |||
InEventContext | |||
) |
#define TdiCopyLookaheadData | ( | Destination, | |
Source, | |||
Length, | |||
ReceiveFlags | |||
) | RtlCopyMemory(Destination, Source, Length) |
#define TDIKRNLAPI DECLSPEC_IMPORT |
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) |
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) |
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) |
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) |
typedef struct _TDI_PNP_CONTEXT * PTDI_PNP_CONTEXT |
typedef struct _TDI_REQUEST_KERNEL * PTDI_REQUEST_KERNEL |
typedef TDI_REQUEST_KERNEL * PTDI_REQUEST_KERNEL_LISTEN |
typedef VOID(NTAPI * TDI_ADD_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address) |
typedef VOID(NTAPI * TDI_ADD_ADDRESS_HANDLER_V2) (_In_ PTA_ADDRESS Address, _In_ PUNICODE_STRING DeviceName, _In_ PTDI_PNP_CONTEXT Context) |
typedef VOID(NTAPI * TDI_BIND_HANDLER) (_In_ PUNICODE_STRING DeviceName) |
typedef VOID(NTAPI * TDI_BINDING_HANDLER) (_In_ TDI_PNP_OPCODE PnPOpcode, _In_ PUNICODE_STRING DeviceName, _In_ PWSTR MultiSZBindList) |
typedef VOID(NTAPI * TDI_DEL_ADDRESS_HANDLER) (_In_ PTA_ADDRESS Address) |
typedef VOID(NTAPI * TDI_DEL_ADDRESS_HANDLER_V2) (_In_ PTA_ADDRESS Address, _In_ PUNICODE_STRING DeviceName, _In_ PTDI_PNP_CONTEXT Context) |
typedef struct _TDI_PNP_CONTEXT TDI_PNP_CONTEXT |
typedef enum _TDI_PNP_OPCODE TDI_PNP_OPCODE |
typedef NTSTATUS(NTAPI * TDI_PNP_POWER_HANDLER) (_In_ PUNICODE_STRING DeviceName, _In_ PNET_PNP_EVENT PowerEvent, _In_ PTDI_PNP_CONTEXT Context1, _In_ PTDI_PNP_CONTEXT Context2) |
typedef VOID(NTAPI * TDI_UNBIND_HANDLER) (_In_ PUNICODE_STRING DeviceName) |
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.
_IRQL_requires_max_ | ( | APC_LEVEL | ) |
Probes and locks virtual pages in memory for the specified process.
[in,out] | MemoryDescriptorList | Memory Descriptor List (MDL) containing the buffer to be probed and locked. |
[in] | Process | The process for which the buffer should be probed and locked. |
[in] | AccessMode | Access mode for probing the pages. Can be KernelMode or UserMode. |
[in] | LockOperation | The type of the probing and locking operation. Can be IoReadAccess, IoWriteAccess or IoModifyAccess. |
Probes and locks virtual pages in memory for the specified process.
Frees previously reserved amount of memory in system virtual address space.
[in] | NumberOfBytes | Size, in bytes, of memory to reserve. |
[in] | PoolTag | Pool Tag identifying the buffer. Usually consists from 4 characters in reversed order. |
[in] | BaseAddress | A pointer to the 1st memory block of the reserved buffer. |
[in] | PoolTag | Pool Tag identifying the buffer. Usually consists from 4 characters in reversed order. |
Definition at line 37 of file cddata.c.
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 347 of file common.c.
_IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Queries information details about a security descriptor.
Computes the quota size of a security descriptor.
Assigns a security descriptor for a new object.
An extended function that assigns a security descriptor for a new object.
Frees a security descriptor.
An extended function that sets new information data to a security descriptor.
Modifies some information data about a security descriptor.
[in] | SecurityInformation | Security information details to be queried from a security descriptor. |
[out] | SecurityDescriptor | The returned security descriptor with security information data. |
[in,out] | Length | The returned length of a security descriptor. |
[in,out] | ObjectsSecurityDescriptor | The returned object security descriptor. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | AutoInheritFlags | Flags bitmask inheritation, influencing how the security descriptor can be inherited and if it can be in the first place. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | SecurityDescriptor | A security descriptor to be freed from memory. |
[in] | _ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | _ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | ObjectType | The type of the new object. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | AutoInheritFlags | Automatic inheritance flags that influence how access control entries within ACLs from security descriptors are inherited. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | SecurityDescriptor | A security descriptor. |
[out] | QuotaInfoSize | The returned quota size of the given security descriptor to the caller. The function may return 0 to this parameter if the descriptor doesn't have a group or a discretionary access control list (DACL) even. |
Definition at line 923 of file Messaging.c.
_In_ ULONG _Out_writes_bytes_ | ( | DestinationBufferSize | ) |
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 | ||
) |
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 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 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 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 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 TdiDefaultSendPossibleHandler | ( | _In_opt_ PVOID | TdiEventContext, |
_In_opt_ PVOID | ConnectionContext, | ||
_In_ ULONG | BytesAvailable | ||
) |
TDIKRNLAPI NTSTATUS NTAPI TdiDeregisterAddressChangeHandler | ( | _In_ HANDLE | BindingHandle | ) |
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 | ) |
_In_ PUNICODE_STRING _In_ PTDI_PNP_CONTEXT _Out_ HANDLE* AddrRegistrationHandle |
Definition at line 1147 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_Next_Res_Des_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(), NetpUnbind(), NetRemoveAlternateComputerName(), NetRenameMachineInDomain(), NetSetPrimaryComputerName(), NetUnjoinDomain(), NetValidateName(), PnpBindRpc(), PnpGetLocalHandles(), PnpUnbindRpc(), RpcBindingSetOption(), RpcImpersonateClient(), RpcMgmtSetComTimeout(), RpcRevertToSelfEx(), and SamrGetDomainPasswordInformation().
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT Context1 |
Definition at line 1095 of file tdikrnl.h.
Referenced by CcDeferWrite(), CcGetDirtyPages(), DriverEntry(), UDFDeferredWriteCallBack(), and VideoPortInitialize().
Definition at line 1096 of file tdikrnl.h.
Referenced by CcDeferWrite(), CcGetDirtyPages(), DriverEntry(), GetSupportedCP(), PcipUpdateHardware(), PciWriteLimitsAndRestoreCurrent(), UDFDeferredWriteCallBack(), and VideoPortInitialize().
Definition at line 1007 of file tdikrnl.h.
Referenced by SacTranslateUnicodeToUtf8().
_In_ PNET_PNP_EVENT PowerEvent |
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT _In_ PTDI_PNP_CONTEXT _In_ ProviderPnPPowerComplete ProtocolCompletionHandler |