I want to know if it is possible to sign data using a smart card\'s private key without resorting to a java applet or activex control.
I am tant
The reason you are getting access denied is because you are trying to access the private key and have not passed the PIN to the card. (I believe)
Private Key functions require the PIN. Also.. You need to Acquire the card context using the winscard.dll
You can check this out.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379886(v=vs.85).aspx
You also need to use the Smart Card CSP.. Windows has a native one in 7 and above called the smart card mini driver.
I am attempting the same thing ... If I get further I will post back a sample...