I want to do a simple thing like make a symbolic link containing a decimal number supplied at run time.
It seems that I have to allocate a buffer (nonpaged or paged, depending on the situation), set a UNICODE_STRING structure to point to the buffer and its length, then use something like RtlUnicodeStringVPrintf (destination, format, my number), then later I have to free the buffer. I also have to figure out how big to make the buffer.
Now all you people have been writing drivers for so many years, do you have to go through all this stuff every time, or is there something you use that makes this easier and less error-prone?
The KMDF String object looks like it might help a bit, but it doesn't seem to be something that can just grow its buffer to accommodate whatever I might want to put into it, and also know to release the buffer when it gets deleted.
Anyone found a way of simplifying this work???
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Developing Minifilters||29 July 2019||OSR Seminar Space|
|Writing WDF Drivers||23 Sept 2019||OSR Seminar Space|
|Kernel Debugging||21 Oct 2019||OSR Seminar Space|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|