Device Driver Development.  
Author Message
Suryakant Verma





PostPosted: Visual C++ General, Device Driver Development. Top

Hi,

I am working on the development of WDM device drivers. I was going the WDM documentation and i encountered two structures DRIVER OBJECT and DEVICE OBJECT. Can anybody tell me whats the relation between the two structures.

Regards
Suryakant Verma




Visual C++1  
 
 
nobugz





PostPosted: Visual C++ General, Device Driver Development. Top

A DRIVER_OBJECT is created by WDM and represents the device driver itself. You'll get one handed to you by the DriverEntry() function. You initialize it by setting up the dispatch table. You create one or more DRIVER_OBJECTs with the IoCreateDevice() function, representing the devices your driver supports.