src: use predefined pcsclite types
This commit is contained in:
committed by
Santiago Gimeno
parent
bd2bf70739
commit
bf15e2eaf1
@@ -37,16 +37,16 @@ class CardReader: public node::ObjectWrap {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct TransmitInput {
|
struct TransmitInput {
|
||||||
uint32_t card_protocol;
|
DWORD card_protocol;
|
||||||
unsigned char *in_data;
|
LPBYTE in_data;
|
||||||
unsigned long in_len;
|
DWORD in_len;
|
||||||
unsigned long out_len;
|
DWORD out_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TransmitResult {
|
struct TransmitResult {
|
||||||
LONG result;
|
LONG result;
|
||||||
unsigned char *data;
|
LPBYTE data;
|
||||||
unsigned long len;
|
DWORD len;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ControlInput {
|
struct ControlInput {
|
||||||
@@ -59,14 +59,14 @@ class CardReader: public node::ObjectWrap {
|
|||||||
|
|
||||||
struct ControlResult {
|
struct ControlResult {
|
||||||
LONG result;
|
LONG result;
|
||||||
unsigned long len;
|
DWORD len;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AsyncResult {
|
struct AsyncResult {
|
||||||
LONG result;
|
LONG result;
|
||||||
unsigned long status;
|
DWORD status;
|
||||||
unsigned char atr[MAX_ATR_SIZE];
|
BYTE atr[MAX_ATR_SIZE];
|
||||||
unsigned long atrlen;
|
DWORD atrlen;
|
||||||
bool do_exit;
|
bool do_exit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ class PCSCLite: public node::ObjectWrap {
|
|||||||
|
|
||||||
struct AsyncResult {
|
struct AsyncResult {
|
||||||
LONG result;
|
LONG result;
|
||||||
char *readers_name;
|
LPSTR readers_name;
|
||||||
unsigned long readers_name_length;
|
DWORD readers_name_length;
|
||||||
bool do_exit;
|
bool do_exit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user