Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

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:

Many Includes for Indirect Display Class Produce Errors

R0b0t1R0b0t1 Member Posts: 9

Hi. I'm trying to emulate the example at The example compiles as-is, but when trying to adapt this code into my own project I encounter a slew of errors related to the headers.

In some cases I have found reordering them works, but:
1. I can't find an order that works in my project, and,
2. the example project contains an include ordering that doesn't work in mine!

I can see that the VS project for the example contains more external references. Notably iddcx.h is automatically resolved to its versioned folder whereas I can not figure out how to do that. wrl.h produces fun errors as well, most of them related to expecting an identifier or missing a semicolon, but also gives #error WRL requires C++ compilation (use a .cpp suffix). If I include iddcx.h by versioned folder I get an error on an enum definition with storage type specified.

I am hoping someone knows the proper dance. Thanks in advance. My code (mostly the generated skeleton) can be seen here: I could just shut up and use the example but I'd like to know what exactly is going wrong.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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