DeviceIoControl Codes

DeviceIoControl Codes

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

figure b-3 page for specifying supported i/o control operations.

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

Figure B-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 b-4 dialog box for adding and editing an i/o control operation.

Figure B-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: 2003
Pages: 119
Authors: Walter Oney

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