用EasySYS生成代码中
typedef struct _DEVICE_EXTENSION
{
ULONG StateVariable;
} DEVICE_EXTENSION, *PDEVICE_EXTENSION;
PDEVICE_EXTENSION deviceExtension;
Status = IoCreateDevice(
DriverObject,
sizeof(DEVICE_EXTENSION),
&ntDeviceName,
FILE_DEVICE_TEST,
0,
TRUE,
&deviceObject
);
创建设备对象时用到DEVICE_EXTENSION结构的大小
deviceExtension = (PDEVICE_EXTENSION)deviceObject->DeviceExtension
这句不明白什么意思
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!