[CMAKE]
[reactos.git] / subsystems / win32 / win32k / ntuser / guicheck.c
index d77fbab..5042173 100644 (file)
@@ -12,9 +12,9 @@
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 /* $Id$
  *
@@ -33,7 +33,7 @@
 
 /* INCLUDES ******************************************************************/
 
-#include <w32k.h>
+#include <win32k.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -45,9 +45,9 @@ static LONG NrGuiAppsRunning = 0;
 /* FUNCTIONS *****************************************************************/
 
 static BOOL FASTCALL
-co_AddGuiApp(PW32PROCESS W32Data)
+co_AddGuiApp(PPROCESSINFO W32Data)
 {
-   W32Data->Flags |= W32PF_CREATEDWINORDC;
+   W32Data->W32PF_flags |= W32PF_CREATEDWINORDC;
    if (InterlockedIncrement(&NrGuiAppsRunning) == 1)
    {
       BOOL Initialized;
@@ -56,7 +56,7 @@ co_AddGuiApp(PW32PROCESS W32Data)
 
       if (!Initialized)
       {
-         W32Data->Flags &= ~W32PF_CREATEDWINORDC;
+         W32Data->W32PF_flags &= ~W32PF_CREATEDWINORDC;
          InterlockedDecrement(&NrGuiAppsRunning);
          return FALSE;
       }
@@ -65,9 +65,9 @@ co_AddGuiApp(PW32PROCESS W32Data)
 }
 
 static void FASTCALL
-RemoveGuiApp(PW32PROCESS W32Data)
+RemoveGuiApp(PPROCESSINFO W32Data)
 {
-   W32Data->Flags &= ~W32PF_CREATEDWINORDC;
+   W32Data->W32PF_flags &= ~W32PF_CREATEDWINORDC;
    if (InterlockedDecrement(&NrGuiAppsRunning) == 0)
    {
       IntEndDesktopGraphics();
@@ -77,19 +77,19 @@ RemoveGuiApp(PW32PROCESS W32Data)
 BOOL FASTCALL
 co_IntGraphicsCheck(BOOL Create)
 {
-   PW32PROCESS W32Data;
+   PPROCESSINFO W32Data;
 
    W32Data = PsGetCurrentProcessWin32Process();
    if (Create)
    {
-      if (! (W32Data->Flags & W32PF_CREATEDWINORDC) && ! (W32Data->Flags & W32PF_MANUALGUICHECK))
+      if (! (W32Data->W32PF_flags & W32PF_CREATEDWINORDC) && ! (W32Data->W32PF_flags & W32PF_MANUALGUICHECK))
       {
          return co_AddGuiApp(W32Data);
       }
    }
    else
    {
-      if ((W32Data->Flags & W32PF_CREATEDWINORDC) && ! (W32Data->Flags & W32PF_MANUALGUICHECK))
+      if ((W32Data->W32PF_flags & W32PF_CREATEDWINORDC) && ! (W32Data->W32PF_flags & W32PF_MANUALGUICHECK))
       {
          RemoveGuiApp(W32Data);
       }
@@ -102,25 +102,25 @@ VOID
 FASTCALL
 IntUserManualGuiCheck(LONG Check)
 {
-   PW32PROCESS W32Data;
+   PPROCESSINFO W32Data;
 
    DPRINT("Enter IntUserManualGuiCheck\n");
 
    W32Data = PsGetCurrentProcessWin32Process();
    if (0 == Check)
    {
-      W32Data->Flags |= W32PF_MANUALGUICHECK;
+      W32Data->W32PF_flags |= W32PF_MANUALGUICHECK;
    }
    else if (0 < Check)
    {
-      if (! (W32Data->Flags & W32PF_CREATEDWINORDC))
+      if (! (W32Data->W32PF_flags & W32PF_CREATEDWINORDC))
       {
          co_AddGuiApp(W32Data);
       }
    }
    else
    {
-      if (W32Data->Flags & W32PF_CREATEDWINORDC)
+      if (W32Data->W32PF_flags & W32PF_CREATEDWINORDC)
       {
          RemoveGuiApp(W32Data);
       }
@@ -130,7 +130,9 @@ IntUserManualGuiCheck(LONG Check)
 
 }
 
-NTSTATUS FASTCALL
+INIT_FUNCTION
+NTSTATUS
+NTAPI
 InitGuiCheckImpl (VOID)
 {
    return STATUS_SUCCESS;