24 #ifndef _INCLUDED_WINDOWS_H
25 #define _INCLUDED_WINDOWS_H
27 #if defined(__WIN32__)
28 #define WIN32_LEAN_AND_MEAN
34 #define _WIN32_WINNT 0x501
42 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR))
43 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
46 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "ASCII", (char *)(S), (SDL_strlen(S)+1))
47 #define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)(S), SDL_strlen(S)+1)
BOOL WIN_IsWindowsVistaOrGreater(void)
int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)
BOOL WIN_IsEqualGUID(const GUID *a, const GUID *b)
GLuint const GLchar * name
char * WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
HRESULT WIN_CoInitialize(void)
BOOL WIN_IsWindows7OrGreater(void)
void WIN_CoUninitialize(void)
int WIN_SetError(const char *prefix)
BOOL WIN_IsEqualIID(REFIID a, REFIID b)
GLboolean GLboolean GLboolean GLboolean a
GLboolean GLboolean GLboolean b