[DllImport("winscard.dll", EntryPoint="SCardConnect", CharSet=CharSet.Auto)]
static extern int SCardConnect(
int hContext,
[MarshalAs(UnmanagedType.LPTStr)] string szReader,
UInt32 dwShareMode,
UInt32 dwPreferredProtocols,
out int phCard,
out UInt32 pdwActiveProtocol);
Value of dwShareMode
SCARD_SHARE_SHARED = 0x00000002 --> This application will allow others to share the reader
SCARD_SHARE_EXCLUSIVE = 0x00000001 --> This application will NOT allow others to share the reader
SCARD_SHARE_DIRECT = 0x00000003 --> Direct control of the reader, even without a card
None.
Please add some!
Please add some!
TODO