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'm trying to write to a serial port from a KMDF driver as a logging mechanism. I'm using the WdfIoxxx APIs as I'm planning to use this same functionality in a minifilter later. My problem is that WdfIoTargetOpen is failing with STATUS_OBJECT_NAME_NOT_FOUND status. I tried all kinds of symbolic links and object names to reference the COM port but the result is the same. Here's a snippet of how I'm trying to open the port :
DECLARE_CONST_UNICODE_STRING(portName, L"\\Device\\COM4"); WDF_IO_TARGET_OPEN_PARAMS_INIT_OPEN_BY_NAME( ¶ms, &portName, MAXIMUM_ALLOWED); status = WdfIoTargetOpen(m_ioTarget, ¶ms);
PS: To conform to the rules, I'm a student and this is for an academic project.
|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!|
|Kernel Debugging||13-17 May 2024||Live, Online|
|Developing Minifilters||1-5 Apr 2024||Live, Online|
|Internals & Software Drivers||11-15 Mar 2024||Live, Online|
|Writing WDF Drivers||26 Feb - 1 Mar 2024||Live, Online|