aboutsummaryrefslogtreecommitdiff
path: root/c/win.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/win.h')
-rw-r--r--c/win.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/win.h b/c/win.h
index 8329f68..1e09c1f 100644
--- a/c/win.h
+++ b/c/win.h
@@ -133,14 +133,14 @@ inline BOOL SetWindowRect(const HWND hWnd, const RECT r)
* uxtheme.dll exists, and otherwise do nothing. */
inline BOOL EBIsThemeActive()
{
- extern BOOL (*IsThemeActive)();
+ extern BOOL (__stdcall *IsThemeActive)();
return IsThemeActive? IsThemeActive(): 0;
}
-inline BOOL EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName,
+inline HRESULT EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName,
const wchar_t* const pszSubIdList)
{
- extern BOOL (*SetWindowTheme)(HWND, const wchar_t*, const wchar_t*);
+ extern HRESULT (__stdcall *SetWindowTheme)(HWND, const wchar_t*, const wchar_t*);
return SetWindowTheme? SetWindowTheme(hWnd, pszSubAppName, pszSubIdList): 0;
}