Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6372

How to pass file name to kernel mode driver?

$
0
0

I want to read from already opened file. There are some examples available like general/ioctl in windows driver samples or How to open a file from a kernel mode device driver and how to read from or write to the file, but first passes file handle of file opened in user mode application (I obviously cannot open file opened by other application due to sharing violation error and handle is null), second shows sample of code without function parameters (I guess for EvtDeviceFileCreate(IN WDFDEVICE Device, IN WDFREQUEST Request, IN WDFFILEOBJECT FileObject) function). Where and how I'm suppose to pass file name to work with file? I want to open it and read by offset plus block length.


Viewing all articles
Browse latest Browse all 6372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>