ReactOS  0.4.12-dev-914-g71f84a3
guicheck.c File Reference
#include <win32k.h>
Include dependency graph for guicheck.c:

Go to the source code of this file.

Functions

static BOOL FASTCALL co_AddGuiApp (PPROCESSINFO W32Data)
 
static void FASTCALL RemoveGuiApp (PPROCESSINFO W32Data)
 
BOOL FASTCALL co_IntGraphicsCheck (BOOL Create)
 
VOID FASTCALL co_IntUserManualGuiCheck (BOOL Create)
 

Variables

static LONG NrGuiAppsRunning = 0
 

Function Documentation

◆ co_AddGuiApp()

static BOOL FASTCALL co_AddGuiApp ( PPROCESSINFO  W32Data)
static

Definition at line 22 of file guicheck.c.

23 {
24  W32Data->W32PF_flags |= W32PF_CREATEDWINORDC;
26  {
28 
30 
31  if (!Initialized)
32  {
33  W32Data->W32PF_flags &= ~W32PF_CREATEDWINORDC;
35  return FALSE;
36  }
37  }
38  return TRUE;
39 }
#define TRUE
Definition: types.h:120
BOOL FASTCALL co_IntInitializeDesktopGraphics(VOID)
Definition: winsta.c:260
static LONG NrGuiAppsRunning
Definition: guicheck.c:17
unsigned int BOOL
Definition: ntddk_ex.h:94
#define InterlockedDecrement
Definition: armddk.h:52
#define InterlockedIncrement
Definition: armddk.h:53
#define W32PF_CREATEDWINORDC
Definition: win32.h:33

Referenced by co_IntGraphicsCheck(), and co_IntUserManualGuiCheck().

◆ co_IntGraphicsCheck()

BOOL FASTCALL co_IntGraphicsCheck ( BOOL  Create)

Definition at line 52 of file guicheck.c.

53 {
54  PPROCESSINFO W32Data;
55 
57  if (Create)
58  {
59  if (! (W32Data->W32PF_flags & W32PF_CREATEDWINORDC) && ! (W32Data->W32PF_flags & W32PF_MANUALGUICHECK))
60  {
61  return co_AddGuiApp(W32Data);
62  }
63  }
64  else
65  {
66  if ((W32Data->W32PF_flags & W32PF_CREATEDWINORDC) && ! (W32Data->W32PF_flags & W32PF_MANUALGUICHECK))
67  {
68  RemoveGuiApp(W32Data);
69  }
70  }
71 
72  return TRUE;
73 }
#define TRUE
Definition: types.h:120
_In_ BOOLEAN Create
Definition: pstypes.h:511
static void FASTCALL RemoveGuiApp(PPROCESSINFO W32Data)
Definition: guicheck.c:42
#define W32PF_MANUALGUICHECK
Definition: win32.h:32
PVOID NTAPI PsGetCurrentProcessWin32Process(VOID)
Definition: process.c:1183
#define W32PF_CREATEDWINORDC
Definition: win32.h:33
static BOOL FASTCALL co_AddGuiApp(PPROCESSINFO W32Data)
Definition: guicheck.c:22

Referenced by DceCreateDisplayDC(), and UserProcessDestroy().

◆ co_IntUserManualGuiCheck()

VOID FASTCALL co_IntUserManualGuiCheck ( BOOL  Create)

Definition at line 77 of file guicheck.c.

78 {
80  W32Data->W32PF_flags |= W32PF_MANUALGUICHECK;
81 
82  if (Create)
83  {
84  co_AddGuiApp(W32Data);
85  }
86  else
87  {
88  RemoveGuiApp(W32Data);
89  }
90 }
_In_ BOOLEAN Create
Definition: pstypes.h:511
struct _PROCESSINFO * PPROCESSINFO
Definition: ntwin32.h:5
static void FASTCALL RemoveGuiApp(PPROCESSINFO W32Data)
Definition: guicheck.c:42
#define W32PF_MANUALGUICHECK
Definition: win32.h:32
PVOID NTAPI PsGetCurrentProcessWin32Process(VOID)
Definition: process.c:1183
static BOOL FASTCALL co_AddGuiApp(PPROCESSINFO W32Data)
Definition: guicheck.c:22

Referenced by co_UserCreateWindowEx(), and co_UserFreeWindow().

◆ RemoveGuiApp()

static void FASTCALL RemoveGuiApp ( PPROCESSINFO  W32Data)
static

Definition at line 42 of file guicheck.c.

43 {
44  W32Data->W32PF_flags &= ~W32PF_CREATEDWINORDC;
46  {
48  }
49 }
static LONG NrGuiAppsRunning
Definition: guicheck.c:17
VOID FASTCALL IntEndDesktopGraphics(VOID)
Definition: winsta.c:334
#define InterlockedDecrement
Definition: armddk.h:52
#define W32PF_CREATEDWINORDC
Definition: win32.h:33

Referenced by co_IntGraphicsCheck(), and co_IntUserManualGuiCheck().

Variable Documentation

◆ NrGuiAppsRunning

LONG NrGuiAppsRunning = 0
static

Definition at line 17 of file guicheck.c.

Referenced by co_AddGuiApp(), and RemoveGuiApp().