I am using Windows 7 Professional and an ID Card production software program. This program calls a dll which I have written in C# to communicate with/write to a smart card.
This works fine on XP but since the move to 7 the call to SCardTransmit returns the result code '1783', which i think is 'The stub received bad data'. The SCardEstablishContext and SCardConnect work fine every time. I have turned off the Smart Card plug and play service and tried restarting the smart card service itself but nothing changes.
I cant seem to find much on this error and it is not even a valid smart card error code for this call, can anyone help?