win32.h
changeset 5304 50daae4d7d38
parent 5222 4f4cfb2e248e
child 5312 884ebccbd847
equal deleted inserted replaced
5303:5a3fa9dfe40b 5304:50daae4d7d38
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #ifndef WIN32_H
     3 #ifndef WIN32_H
     4 #define WIN32_H
     4 #define WIN32_H
     5 
     5 
       
     6 #include <windows.h>
     6 bool MyShowCursor(bool show);
     7 bool MyShowCursor(bool show);
     7 
     8 
     8 typedef void (*Function)(int);
     9 typedef void (*Function)(int);
     9 bool LoadLibraryList(Function proc[], const char *dll);
    10 bool LoadLibraryList(Function proc[], const char *dll);
    10 
    11 
    21 # define MB_TO_WIDE_BUFFER(str, buffer, buflen) (str)
    22 # define MB_TO_WIDE_BUFFER(str, buffer, buflen) (str)
    22 # define WIDE_TO_MB(str) (str)
    23 # define WIDE_TO_MB(str) (str)
    23 # define WIDE_TO_MB_BUFFER(str, buffer, buflen) (str)
    24 # define WIDE_TO_MB_BUFFER(str, buffer, buflen) (str)
    24 #endif
    25 #endif
    25 
    26 
       
    27 /* Override SHGetFolderPath with our custom implementation */
       
    28 #if defined(SHGetFolderPath)
       
    29 #undef SHGetFolderPath
       
    30 #endif
       
    31 #define SHGetFolderPath OTTDSHGetFolderPath
       
    32 
       
    33 HRESULT OTTDSHGetFolderPath(HWND, int, HANDLE, DWORD, LPTSTR);
       
    34 
    26 #if defined(__MINGW32__)
    35 #if defined(__MINGW32__)
    27 #define SHGFP_TYPE_CURRENT 0
    36 #define SHGFP_TYPE_CURRENT 0
    28 #endif /* __MINGW32__ */
    37 #endif /* __MINGW32__ */
    29 
    38 
    30 #endif /* WIN32_H */
    39 #endif /* WIN32_H */