#define MOD_ALT 0x0001 #define MOD_WIN 0x0008 #define NULL ((void *)0) #define SW_SHOWDEFAULT 10 #define WM_HOTKEY 0x0312 typedef int BOOL; typedef char CHAR; typedef unsigned long DWORD; struct HWND__ { int unused; }; typedef long LONG; typedef intptr_t LONG_PTR; typedef unsigned int UINT; typedef uintptr_t UINT_PTR; //#define __stdcall __stdcall void ExitProcess __attribute__((dllimport)) __attribute__((noreturn))(UINT uExitCode); typedef struct HWND__ *HWND; typedef LONG_PTR LPARAM; typedef const CHAR *LPCSTR; typedef UINT_PTR WPARAM; struct tagPOINT { LONG x; LONG y; }; typedef struct tagPOINT POINT; __stdcall BOOL RegisterHotKey __attribute__((dllimport))(HWND hWnd, int id, UINT fsModifiers, UINT vk); __stdcall UINT WinExec __attribute__((dllimport))(LPCSTR lpCmdLine, UINT uCmdShow); struct tagMSG { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; }; typedef struct tagMSG *LPMSG; typedef struct tagMSG MSG; __stdcall BOOL GetMessage __attribute__((dllimport))(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);