none
WDF driver - how to setup device access limits? RRS feed

  • Question

  • Hi,

    My serial port driver creates device symbolic link I can access. I would like to know how can I limit open file count on that device. Currently I am able to open that symbolic link multiple times. I want to limit access to single open file.

    Cheers

    Monday, June 10, 2019 10:42 AM

Answers

  • Use WdfDeviceInitSetExclusive when you set up the device before you call WdfDeviceCreate in you EvtDriverDeviceAdd routine.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    • Marked as answer by nb3m Monday, June 10, 2019 11:01 AM
    Monday, June 10, 2019 10:47 AM