Build Property Page on WDF

Hi Expert,

I currently have a WDM version of a property page implementation, and I would like to try converting it into a version that can be used with WDF

I would like to inquire if there are any differences in the implementation of property pages between WDM and WDF. Specifically, I’m wondering if changes are necessary due to differences in the usage of the coinstaller.

Regarding the implementation of property pages, I only found this article online: The NT Insider:Property - Adding Property Pages to Device Drivers, but I’m not sure if it applies to WDF.

I couldn’t find similar examples in the Windows-driver-samples repository either, so I would like to ask if you could recommend any WDF property page implementation examples.

Additionally, I would like to know if there is a way to create a graphical user interface for the property page using Windows Forms and then embed it into the property page.

Since English is not my native language, I’ve encountered some difficulties in finding information. Please forgive any omissions. I really appreciate everyone's help.

Many Thanks.

Best Regards,
Luke Chen

Hi Experts,

I would like to simplify the question. Since the examples I've seen so far use Win32 API to implement a DLL that the INF references, I would like to ask if there is a method to implement a property page interface using Windows Forms, compile it into a DLL, and use it in the INF. Or, is there any other way to implement this besides using Win32 API?

Thanks.

Best Regards,
Luke Chen

The property page interface is extremely primitive, and goes back to the very beginnings of Windows. Although I believe there are ways to call a .NET DLL from within a native process, I don't think Windows Forms will work. Remember that your property page is just a UI control that is embedded in someone else's window. It's an unusual environment.

1 Like