Search code examples
windowsdebuggingdevice-driversmartcard

How to debug a base csp minidriver


I'd like to attach a debugger to a base csp minidriver on windows 7.
Which process hosts the driver .dll? Is it just another WUDFHost.exe ?
Can I attach a user-mode debugger to that process?


Solution

  • At least when using certutil.exe the .dll is loaded "directly" into the process.
    In Visual Studio one can set certutil.exe as the command in the Debugging panel and then step into the minidriver.dll's code and thereby test how certutil tries to access the smartcard.