According to MS (https://learn.microsoft.com/en-us/windows/win32/secauthn/smart-card-resource...), all the resource requests and handling for smartcards handled by resource manager (scardsvr.dll). For now basic implementation is good enough to make it work.