none
Rpcrt4.dll - System Error 2 RRS feed

  • Question

  • Hello,

    I have been working with WDK 10 and I have added rpcrt4.lib into the Linker. My driver has been successfully built. When I try to run the driver using command net start mydriver. I get system error 2 message. I tried using dependency walker but I don't see any dll file missing. When I remove the rpcrt4.lib from the Additional Dependencies, I am able to run the driver without any problem. But when I add rpcrt4.lib, it build successfully but on writing net start mydriver it gives system error2. I need rpcrt4.lib as I am using a function UuidCreate.

    I have been working on this issue for last 1 week, but did not find anything.

    Thanks

    Wednesday, March 8, 2017 5:24 AM

Answers

  • Ok.. finally I see the problem. The problem was I was using a user mode dll in kernel mode. Rpcrt4.dll is user mode dll. So now I am not using UuidCreate function. I am now using ExUuidCreate which is a kernel mode function.
    • Marked as answer by cyyber Thursday, March 9, 2017 4:24 AM
    Thursday, March 9, 2017 4:24 AM