src: improve SCardConnect interface

- We can optionally pass the share_mode and preferred_protocol options. They are
  optional to keep backwards compatibility.
- Update README
- Define constants in C++ land.
This commit is contained in:
Santiago Gimeno
2014-07-29 12:15:32 +02:00
parent c5d09f8b19
commit 279bc112ce
4 changed files with 92 additions and 27 deletions

View File

@@ -21,9 +21,14 @@ class CardReader: public node::ObjectWrap {
void *result;
};
struct ConnectInput {
DWORD share_mode;
DWORD pref_protocol;
};
struct ConnectResult {
LONG result;
unsigned long card_protocol;
DWORD card_protocol;
};
struct TransmitInput {