WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE宏将对象的驱动程序定义的上下文信息插入到对象的 WDF_OBJECT_ATTRIBUTES 结构中。 语法 ManagedCPlusPlus 复制 void WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE( _attributes, _contexttype ); 参数 _attributes 指向对象的 WDF_OBJECT_ATTRIBUTES 结构的指针。 _contexttype 驱动...
WDF_OBJECT_ATTRIBUTES_INIT 函数 WDF_OBJECT_CONTEXT_TYPE_INFO 结构 WDF_SYNCHRONIZATION_SCOPE 枚举 WDF_TYPE_NAME_POINTER_TYPE 宏 WDF_TYPE_NAME_TO_TYPE_INFO 宏 WdfObjectAllocateContext 函数 WdfObjectContextGetObject 函数 WdfObjectCreate 函数 WdfObjectDelete 函数 ...
pnpPowerCallbacks.EvtDeviceD0Exit = MyEvtDeviceD0Exit; WdfDeviceInitSetPnpPowerEventCallbacks(DeviceInit, pnpPowerCallbacks); // 创建设备对象,初始化相关的属性 WDF_OBJECT_ATTRIBUTES_INIT(&objAttributes); WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE(&objAttributes, MY_DEVICE_CONTEXT); // 命名设备 status =...
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE内存类型 内存 written,内存指令不能written,这是在电脑使用中经常出现的问题,内存是主板上的存储部件,是CPU直接与之沟通,并用其存放当前正在使用的数据和命令的重要部件。当你用键盘或鼠标输入某个命令后,CPU就会解释命令并
STATUS_OBJECT_NAME_INVALID 指定的 ContextAttributes 参数无效的WDF_OBJECT_ATTRIBUTES结构的 ContextTypeInfo 成员。 STATUS_INSUFFICIENT_RESOURCES 无法分配上下文空间。 STATUS_OBJECT_NAME_EXISTS 驱动程序已分配上下文空间,该空间与 ContextAttributes 指定的WDF_OBJECT_ATTRIBUTES结构的 ContextTypeInfo 成...
To insert a pointer to this structure into a WDF_OBJECT_ATTRIBUTES structure, drivers should use theWDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPEmacro. For more information about using these macros, seeFramework Object Context Space. Requirements RequirementValue ...
NT_SUCCESS(status)) { goto Exit; } for (i = 0; i < numSubRequests; i++) { WDF_OBJECT_ATTRIBUTES_INIT(&attributes); WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE( &attributes, SUB_REQUEST_CONTEXT ); status = WdfRequestCreate( &attributes, WdfUsbTargetDeviceGetIoTarget(deviceContext->WdfUsb...
WDF_OBJECT_ATTRIBUTES attributes; PMDL mdl; PVOID virtualAddress; ULONG length; NTSTATUS status; WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE( &attributes, TRANSACTION_CONTEXT ); status = WdfDmaTransactionCreate( devExt->DmaEnabler, &attributes, &dmaTransaction ); if(!NT_SUCCESS(status)...
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(QUEUE_EXTENSION, QueueGetExtension) #pragma pack(1) typedef struct _BOOT_SECTOR { UCHAR bsJump[3]; // x86 jmp instruction, checked by FS CCHAR bsOemName[8]; // OEM name of formatter USHORT bsBytesPerSec; // Bytes per Sector ...
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(QUEUE_EXTENSION, QueueGetExtension) #pragma pack(1) typedef struct _BOOT_SECTOR { UCHAR bsJump[3]; // x86 jmp instruction, checked by FS CCHAR bsOemName[8]; // OEM name of formatter USHORT bsBytesPerSec; // Bytes per Sector ...