i make a class called smartcard.cs using c# programming language
this class uses winscard and kernel32 libraries to connect to smart card and read data from it
my program works fine on X32 bits Windows
when i tried X64 windows 7 it works fine until select the smart card reader and try to connect
but when connect to the card using the function "SCardConnect" it returns 06 and as we know it must return 0 to be succeeded
when i debug i found that the context returned from function "SCardEstablishContext" =0 on x64 and equal some number on x86
what i must to do to make my program work on x64 as well?