驱动开发学习笔记01:DRIVER_OBJECT数据结构
2011-08-08 13:48
295 查看
\
typedef struct _DRIVER_OBJECT {
CSHORT Type;
CSHORT Size;
//
// The following links all of the devices created by a single driver
// together on a list, and the Flags word provides an extensible flag
// location for driver objects.
//一个指向设备对象的指针
//设备对象可能为一个或者多个,所以指向设备对象的第一个指针,也是指向这个设别链的指针
//
PDEVICE_OBJECT DeviceObject;
ULONG Flags;
//
// The following section describes where the driver is loaded. The count
// field is used to count the number of times the driver has had its
// registered reinitialization routine invoked.
//
//
PVOID DriverStart;
ULONG DriverSize;
PVOID DriverSection;
PDRIVER_EXTENSION DriverExtension;
//
// The driver name field is used by the error log thread
// determine the name of the driver that an I/O request is/was bound.
//记录程序的名字,用UNICODE字符串记录
//一般形式\Driver\[驱动程序名称]
//
UNICODE_STRING DriverName;
//
// The following section is for registry support. Thise is a pointer
// to the path to the hardware information in the registry
//记录设备的硬件数据库键名 也是用UNICODE字符串记录
//一般形式:\REGISTRY\MACHINE\HARDWARE\DESCRIPTION\SYSTEM
//
PUNICODE_STRING HardwareDatabase;
//
// The following section contains the optional pointer to an array of
// alternate entry points to a driver for "fast I/O" support. Fast I/O
// is performed by invoking the driver routine directly with separate
// parameters, rather than using the standard IRP call mechanism. Note
// that these functions may only be used for synchronous I/O, and when
// the file is cached.
//文件驱动的派遣函数
//
PFAST_IO_DISPATCH FastIoDispatch;
//
// The following section describes the entry points to this particular
// driver. Note that the major function dispatch table must be the last
// field in the object so that it remains extensible.
//记录StartIO例程的函数地址用于串行化操作
//制定驱动卸载时所用的回调函数地址
//
PDRIVER_INITIALIZE DriverInit;
PDRIVER_STARTIO DriverStartIo;
PDRIVER_UNLOAD DriverUnload;
PDRIVER_DISPATCH MajorFunction[IRP_MJ_MAXIMUM_FUNCTION + 1];
} DRIVER_OBJECT;
typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;
相关文章推荐
- Windows驱动开发(6) - DRIVER_OBJECT结构体
- FileSystemObject_Driver
- [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
- 驱动对象(DRIVER_OBJECT)
- AttributeError: 'WebDriver' object has no attribute
- appium driver.swipe () 实现界面滑动执行报错 AttributeError: 'WebDriver' object has no attribute 'swipe'
- Driver build Error "error C2220: warning treated as error - no 'object' file generated"
- Ceph 基本数据结构(1)-object
- 遍历所有驱动的名_根据本驱动对象的成员(DriverObject->DriverSection)_对应LDR_DATA_TABLE_ENTRY结构体_双向链表使用
- Understand IRP ,Driver Object and Device Object
- Selenium的PO模式(Page Object Model)|(Selenium Webdriver For Python)
- 'WebDriver' object has no attribute 'get_screenshots_as_file' 错误
- [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
- at oException:racle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1401)
- 通过暴搜DRIVER_OBJECT枚举驱动
- 学习笔记之DRIVER_OBJECT对象结构
- windbg : view nt!IoDriverObjectType
- 驱动对象(DRIVER_OBJECT)
- DRIVER_OBJECT
- PHP SPL标准库之数据结构对象容器(SplObjectStorage)