ReactOS
0.4.15-dev-6703-g6528ab8
themes.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS 'General' Shim library
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Theme related shims
5
* COPYRIGHT: Copyright 2016,2017 Mark Jansen (mark.jansen@reactos.org)
6
*/
7
8
#define WIN32_NO_STATUS
9
#include <
windef.h
>
10
#include <
winbase.h
>
11
#include <
winuser.h
>
12
#include <
wingdi.h
>
13
#include <
shimlib.h
>
14
#include <
strsafe.h
>
15
#include <
uxtheme.h
>
16
17
18
#define SHIM_NS DisableThemes
19
#include <setup_shim.inl>
20
21
#define SHIM_NUM_HOOKS 0
22
#define SHIM_NOTIFY_FN SHIM_OBJ_NAME(Notify)
23
24
BOOL
WINAPI
SHIM_OBJ_NAME(
Notify
)(
DWORD
fdwReason,
PVOID
ptr
)
25
{
26
if
(fdwReason ==
SHIM_REASON_INIT
)
27
{
28
/* Disable themes for non-client, comctl controls and webcontent */
29
SetThemeAppProperties
(0);
30
}
31
return
TRUE
;
32
}
33
34
#include <implement_shim.inl>
35
TRUE
#define TRUE
Definition:
types.h:120
SetThemeAppProperties
void WINAPI SetThemeAppProperties(DWORD dwFlags)
Definition:
system.c:941
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
ptr
static PVOID ptr
Definition:
dispmode.c:27
shimlib.h
SHIM_REASON_INIT
#define SHIM_REASON_INIT
Definition:
shimlib.h:45
strsafe.h
Notify
BOOL WINAPI SHIM_OBJ_NAME() Notify(DWORD fdwReason, PVOID ptr)
Definition:
themes.c:24
uxtheme.h
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
wingdi.h
winuser.h
dll
appcompat
shims
genral
themes.c
Generated on Tue Oct 3 2023 06:05:43 for ReactOS by
1.9.6