阅读:1550回复:2
关于DeviceObject->MajorFunction与DriverObject->MajorFunction
请问DeviceObject->MajorFunction与DriverObject->MajorFunction这两者有什么异同
|
|
沙发#
发布于:2008-08-17 16:51
lkd> dt -v _device_object
Matched nt!_DEVICE_OBJECT nt!_DEVICE_OBJECT struct _DEVICE_OBJECT, 25 elements, 0xb8 bytes +0x000 Type : Int2B +0x002 Size : Uint2B +0x004 ReferenceCount : Int4B +0x008 DriverObject : Ptr32 to struct _DRIVER_OBJECT, 15 elements, 0xa8 bytes +0x00c NextDevice : Ptr32 to struct _DEVICE_OBJECT, 25 elements, 0xb8 bytes +0x010 AttachedDevice : Ptr32 to struct _DEVICE_OBJECT, 25 elements, 0xb8 bytes +0x014 CurrentIrp : Ptr32 to struct _IRP, 21 elements, 0x70 bytes +0x018 Timer : Ptr32 to struct _IO_TIMER, 6 elements, 0x18 bytes +0x01c Flags : Uint4B +0x020 Characteristics : Uint4B +0x024 Vpb : Ptr32 to struct _VPB, 9 elements, 0x58 bytes +0x028 DeviceExtension : Ptr32 to Void +0x02c DeviceType : Uint4B +0x030 StackSize : Char +0x034 Queue : union __unnamed, 2 elements, 0x28 bytes +0x05c AlignmentRequirement : Uint4B +0x060 DeviceQueue : struct _KDEVICE_QUEUE, 5 elements, 0x14 bytes +0x074 Dpc : struct _KDPC, 10 elements, 0x20 bytes +0x094 ActiveThreadCount : Uint4B +0x098 SecurityDescriptor : Ptr32 to Void +0x09c DeviceLock : struct _KEVENT, 1 elements, 0x10 bytes +0x0ac SectorSize : Uint2B +0x0ae Spare1 : Uint2B +0x0b0 DeviceObjectExtension : Ptr32 to struct _DEVOBJ_EXTENSION, 12 elements, 0x2c bytes +0x0b4 Reserved : Ptr32 to Void |
|
板凳#
发布于:2008-08-17 17:09
那不是说deviceobject中没有function域吗?我是菜鸟,请详细点,好吗
|
|