microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.76k stars 4.89k forks source link

PRM sample #1091

Closed yinghany closed 5 months ago

yinghany commented 5 months ago

Add a new WDF driver sample to demonstrate the usage of the PRM direct-call interface.

NeoAdonis commented 5 months ago
JakobL-MSFT commented 5 months ago

@NeoAdonis : Sample still does not build!! See build failure.

yinghany commented 5 months ago

@NeoAdonis : Sample still does not build!! See build failure.

@JakobL-MSFT What is the WDK version that you are building with? This is a new sample reliant on Ge WDK headers (prminterface.h).

JakobL-MSFT commented 5 months ago

@JakobL-MSFT What is the WDK version that you are building with? This is a new sample reliant on Ge WDK headers (prminterface.h).

Now I understand!!!

First. You need to target our "develop" branch. Not "main".

Second. The samples in the develop branch needs to build with (1) "in market" EWDK and (2) also GE EWDK. Exceptions can happen (as in your case) and we add them to .\exclusions.csv file in relevant branch. The entry would look as follows:

prm\prmsample,*,,22621,Only NI: Not supported on NI.

(Please note the .\exclusion.csv file differs between main and develop branch. You need to edit based on the develop branch version)

I can make the edit above (or you can add it - please keep the entries sorted)

Cheers.

Jakob