Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef WIN32_H
00013 #define WIN32_H
00014
00015 #include <windows.h>
00016 bool MyShowCursor(bool show, bool toggle = false);
00017
00018 typedef void (*Function)(int);
00019 bool LoadLibraryList(Function proc[], const char *dll);
00020
00021 char *convert_from_fs(const TCHAR *name, char *utf8_buf, size_t buflen);
00022 TCHAR *convert_to_fs(const char *name, TCHAR *utf16_buf, size_t buflen, bool console_cp = false);
00023
00024
00025
00026
00027
00028 #if defined(UNICODE)
00029 # define MB_TO_WIDE(str) OTTD2FS(str)
00030 # define WIDE_TO_MB(str) FS2OTTD(str)
00031 #else
00032 # define MB_TO_WIDE(str) (str)
00033 # define WIDE_TO_MB(str) (str)
00034 #endif
00035
00036 HRESULT OTTDSHGetFolderPath(HWND, int, HANDLE, DWORD, LPTSTR);
00037
00038 #if defined(__MINGW32__)
00039 #define SHGFP_TYPE_CURRENT 0
00040 #endif
00041
00042 #endif