diff --git a/reactos/tools/wmc/windows.h b/reactos/tools/wmc/windows.h new file mode 100644 index 00000000000..0c8a7d4b6f8 --- /dev/null +++ b/reactos/tools/wmc/windows.h @@ -0,0 +1,35 @@ +#include +typedef wchar_t WCHAR; +typedef unsigned short int WORD; +typedef unsigned int UINT; +typedef unsigned int DWORD; +typedef char CHAR; +typedef CHAR *LPSTR; +typedef WCHAR *LPWSTR; +typedef const CHAR *LPCSTR; +typedef const WCHAR *LPCWSTR; +typedef unsigned int *LPBOOL; + +#ifndef __unix__ +#define STDCALL __attribute__((stdcall)) +#else +#define STDCALL +#endif + +int STDCALL MultiByteToWideChar( + UINT CodePage, + DWORD dwFlags, + LPCSTR lpMultiByteStr, + int cbMultiByte, + LPWSTR lpWideCharStr, + int cchWideChar); + +int STDCALL WideCharToMultiByte( + UINT CodePage, + DWORD dwFlags, + LPCWSTR lpWideCharStr, + int cchWideChar, + LPSTR lpMultiByteStr, + int cbMultiByte, + LPCSTR lpDefaultChar, + LPBOOL lpUsedDefaultChar);