Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
I want to add a fairly straightforward interface/API to my UMDF (IddCx) display driver for use by apps. Something like this...:
int GetConnectorCount(); bool IsMonitorConnected(int connectorIndex); HRESULT ConnectMonitor(int connectorIndex); HRESULT DisconnectMonitor(int connectorIndex);
No need to read or write a data stream; just a few simple functions to query and manage state.
I've been looking for examples of this in the Windows Driver Samples, but all I've found are examples where IOCTLs are intercepted.
Can anyone help clarify what my options are, and maybe point to an example or some documentation?
Scott Smith
Windows Developer since 1989
Upcoming OSR Seminars | ||
---|---|---|
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead! | ||
Writing WDF Drivers | 7 Dec 2020 | LIVE ONLINE |
Internals & Software Drivers | 25 Jan 2021 | LIVE ONLINE |
Developing Minifilters | 8 March 2021 | LIVE ONLINE |
Comments
You should not create an externally activatable COM interface in a UMDF driver (v1 or 2). The IddCx sample and docs do not talk about normal IO in an IddCx client driver. It should be a simple experiment in your AddDevice routine:
1) create a device interface
2) create a WDFQUEUE to handle IOCTLs
and in your app, enumerate the device interface, open it, and try to send an IOCTL and see if it shows up in your driver.
Awesome! Thanks!
Scott Smith
Windows Developer since 1989