Hello Darth Tester,
In our previous exchanges, I directed your focus toward unhandled exceptions within the CardAcquireContext function and potential mismatches in the Smart Card Resource Manager ATR registry mappings under HKLM\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards. Reevaluating this guidance against your recent certutil output and your Windows 11 environment, the root cause is highly likely an initialization failure within the CARD_DATA structure or a strict Windows 11 security policy blocking execution, rather than just a simple registry mismatch. The "smart card cannot perform the requested operation" error directly corresponds to SCARD_E_UNSUPPORTED_FEATURE. This confirms the SCRM cannot validate the driver's capabilities because the function signature or return data is invalid according to the Smart Card Minidriver Specification, causing the tool to fall back to version 0 and exit before the WTT logging subsystem flushes the buffer to disk.
To resolve this issue, you must inspect your CardAcquireContext implementation and guarantee that it explicitly assigns pCardData->dwVersion to a supported integer, such as 7 for v7.07, and assigns all required function pointers before returning ERROR_SUCCESS. Furthermore, running the HLK on modern Windows 11 builds enforces strict Hypervisor-Protected Code Integrity (HVCI) requirements. If your MyCard_CMx64.dll attempts to load unsigned dependencies or allocates executable memory improperly, the OS will silently block the operations. This causes cmck.exe to fail the version check and terminate abruptly. You must compile your minidriver with the /INTEGRITYCHECK linker flag and ensure it passes Driver Verifier. I recommend attaching WinDbg to the cmck.exe process and setting a breakpoint directly on your CardAcquireContext export to observe the exact state of the pCardData structure in memory before the function returns or the process terminates.
Hope this answer brought you some useful information. If it has, please consider accepting the answer so that other people sharing the same issue would benefit too. Thank you :)
VP