DeviceIoControl Codes

[Previous] [Next]

If you specified handling for IRP_MJ_DEVICE_CONTROL, the wizard will present a page (depicted in Figure C-3) to allow you to specify information about the control operations you support.

click to view at full size.

Figure C-3. Page for specifying supported I/O control operations.

Figure C-4 is an example of how you specify information about a particular DeviceIoControl operation. Most of the fields correspond directly to parameters in the CTL_CODE preprocessor macro and should therefore require no explanation. Setting the Asynchronous option generates support for an operation that you complete asynchronously, after the dispatch function returns STATUS_PENDING.

Figure C-4. Dialog box for adding and editing an I/O control operation.



Programming the Microsoft Windows Driver Model
Programming the Microsoft Windows Driver Model
ISBN: 0735618038
EAN: 2147483647
Year: 1999
Pages: 93
Authors: Walter Oney

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net