0_0_18339773_18632.cpp:16:1: error: 'EXTERN' does not name a type
EXTERN void* __stdcall GetStdHandle(unsigned long);
^
0_0_18339773_18632.cpp:17:1: error: 'EXTERN' does not name a type
EXTERN void* __stdcall CreateFileA(const char*, unsigned, unsigned, void*, unsigned, unsigned, void*);
^
0_0_18339773_18632.cpp:18:1: error: 'EXTERN' does not name a type
EXTERN int __stdcall ReadFile(void*, void*, unsigned long, unsigned long*, void*);
^
0_0_18339773_18632.cpp:19:1: error: 'EXTERN' does not name a type
EXTERN int __stdcall WriteFile(void*, const void*, unsigned, unsigned *, void*);
^
0_0_18339773_18632.cpp: In function 'int mwrite(void*, const void*, unsigned int)':
0_0_18339773_18632.cpp:20:141: error: 'WriteFile' was not declared in this scope
int mwrite(void *handle, const void* caBuffer, unsigned int unToWrite) { if (WriteFile(handle, caBuffer, unToWrite, (unsigned*)&unToWrite, 0) == 0) return -1; return unToWrite; }
^
0_0_18339773_18632.cpp: In function 'int getcc(void*)':
0_0_18339773_18632.cpp:21:98: error: 'ReadFile' was not declared in this scope
int getcc(void *handle) { unsigned long len = 1; int c = 0; if (ReadFile(handle, &c, len, &len, 0) == 0) return -1; if (len < 1) return -1; return c; }
^
|