Skip to content

Commit

Permalink
Use SCARD_SHARE_DIRECT to work without a smart card
Browse files Browse the repository at this point in the history
Since the program is talking to the driver and/or reader we do not need
to have a card inserted.
So we can use SCARD_SHARE_DIRECT instead of SCARD_SHARE_SHARED argument
of SCardConnect()


git-svn-id: svn:https://svn.debian.org/svn/pcsclite/trunk/contrib@6957 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Aug 8, 2014
1 parent 04659a1 commit 6f2fa69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libPCSCv2part10/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main(void)
printf("Using reader: %s\n", mszReaders);

rv = SCardConnect(hContext, mszReaders,
SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,
SCARD_SHARE_DIRECT, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,
&hCard, &dwPref);
PCSC_ERROR_EXIT(rv)

Expand Down

0 comments on commit 6f2fa69

Please sign in to comment.