Hi all i am writing a python script to access the winscard.dll of windows.
lib = cdll.LoadLibrary('winscard.dll')
hSC = c_long(0)
lRetval = lib.SCardEstablishContext(0,None,None,pointer(hSC))
the above returns a value error as below
Traceback (most recent call last):
File "C:\Documents and Settings\sbritto\Desktop\OpenSSL\python\test.py",
line 17, in <module>
lRetval = lib.SCardEstablishContext(0,None,None,pointer(hSC))
ValueError: Procedure called with not enough arguments (16 bytes missing) or
wrong calling convention
The value error in this case denotes the arguments are wrong. but i don't know what else to give as input to make it work, I tried several input combinations.
Thank you all.