locked
Use WFP from UMDF - ERROR_ACCESS_DENIED RRS feed

  • Question

  •  I do not know how to access WFP APIs from UMDF driver.

     Before UMDF, I have made sample app to test WFP. When I run my test app, I get ERROR_ACCESS_DENIED when I call FwpmFilterAdd API right after FwpmEngineOpen. So I simply run my test app with "Run as Administrator" option and everything is fine. WFP works as I expect. Here is my first question, is there any way to avoid access_denied error here?

    Next I move my WFP code to umdf driver, and I get same access_denied error. Here I do not know how to solve this issue.

    Is there any way to run UMDF driver "as administrator"? 

    Or is there any alternative to gain access/privilege to use WFP from UMDF driver?

    Thank you.


    • Edited by miradham Friday, January 12, 2018 12:53 AM
    Thursday, January 11, 2018 10:55 AM