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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user