Kreldin Dec 4th, 2012 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //---------------------------------------------------------------------------
  2. #if defined(_WINDOWS)
  3.   #define DLLENTRY(type) extern "C" type __stdcall
  4.   #include <windows.h>
  5. #else
  6.   #define DLLENTRY(type) extern "C" WINAPI __declspec(dllexport) type
  7.   #include <vcl.h>
  8. #endif
  9. //---------------------------------------------------------------------------
  11. DLLENTRY(int)    SimpleMsgBox(char *msgstr);
  12. DLLENTRY(HANDLE) SioOpen(char *name, unsigned int baudrate);
  13. DLLENTRY(BOOL)   SioChangeBaud(HANDLE ComPort, unsigned int baudrate);
  14. DLLENTRY(BOOL)   SioPutChars(HANDLE ComPort, char *stuff, int n);
  15. DLLENTRY(DWORD)  SioGetChars(HANDLE ComPort, char *stuff, int n);
  16. DLLENTRY(DWORD)  SioTest(HANDLE ComPort);
  17. DLLENTRY(BOOL)   SioClrInbuf(HANDLE ComPort);
  18. DLLENTRY(BOOL)   SioClose(HANDLE ComPort);
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!