Author: gadamopoulos Date: Tue Sep 20 18:04:14 2011 New Revision: 53777
URL: http://svn.reactos.org/svn/reactos?rev=53777&view=rev Log: [win32k] - move function definitions from c files to headers
Modified: trunk/reactos/include/ndk/psfuncs.h trunk/reactos/subsystems/win32/win32k/include/clipboard.h trunk/reactos/subsystems/win32/win32k/include/cliprgn.h trunk/reactos/subsystems/win32/win32k/include/input.h trunk/reactos/subsystems/win32/win32k/include/menu.h trunk/reactos/subsystems/win32/win32k/include/misc.h trunk/reactos/subsystems/win32/win32k/include/painting.h trunk/reactos/subsystems/win32/win32k/include/sysparams.h trunk/reactos/subsystems/win32/win32k/include/win32kdebug.h trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c trunk/reactos/subsystems/win32/win32k/ntuser/callproc.c trunk/reactos/subsystems/win32/win32k/ntuser/display.c trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c trunk/reactos/subsystems/win32/win32k/ntuser/message.c trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c trunk/reactos/subsystems/win32/win32k/ntuser/timer.c trunk/reactos/subsystems/win32/win32k/ntuser/windc.c trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c trunk/reactos/subsystems/win32/win32k/objects/dclife.c
Modified: trunk/reactos/include/ndk/psfuncs.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=5... ============================================================================== --- trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] (original) +++ trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -189,6 +189,13 @@ NTSTATUS NTAPI PsGetProcessExitStatus( + PEPROCESS Process +); + +NTKERNELAPI +BOOLEAN +NTAPI +PsGetProcessExitProcessCalled( PEPROCESS Process );
Modified: trunk/reactos/subsystems/win32/win32k/include/clipboard.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/clipboard.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/clipboard.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -1,7 +1,4 @@ #pragma once - -#include "window.h" -#include <include/win32.h>
typedef struct _CLIP { @@ -16,7 +13,5 @@ VOID FASTCALL UserClipboardFreeWindow(PWND pWindow);
-struct _WINSTATION_OBJECT; - VOID NTAPI UserEmptyClipboardData(struct _WINSTATION_OBJECT *pWinSta);
Modified: trunk/reactos/subsystems/win32/win32k/include/cliprgn.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/cliprgn.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/cliprgn.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -3,3 +3,4 @@ INT FASTCALL GdiGetClipBox(HDC hDC, RECTL *rc); INT FASTCALL GdiSelectVisRgn(HDC hdc, HRGN hrgn); INT FASTCALL GdiExtSelectClipRgn (PDC dc, HRGN hrgn, int fnMode); +int FASTCALL CLIPPING_UpdateGCRegion(DC* Dc);
Modified: trunk/reactos/subsystems/win32/win32k/include/input.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -51,7 +51,8 @@ BOOL UserInitDefaultKeyboardLayout(VOID); PKBL UserHklToKbl(HKL hKl); BOOL FASTCALL UserAttachThreadInput(PTHREADINFO,PTHREADINFO,BOOL); - +VOID FASTCALL DoTheScreenSaver(VOID); +WORD FASTCALL get_key_state(void); #define ThreadHasInputAccess(W32Thread) \ (TRUE)
Modified: trunk/reactos/subsystems/win32/win32k/include/menu.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/menu.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/menu.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -69,3 +69,7 @@
PMENU_OBJECT FASTCALL IntGetSystemMenu(PWND Window, BOOL bRevert, BOOL RetMenu); + +UINT FASTCALL IntFindSubMenu(HMENU *hMenu, HMENU hSubTarget ); +UINT FASTCALL IntGetMenuState( HMENU hMenu, UINT uId, UINT uFlags); +
Modified: trunk/reactos/subsystems/win32/win32k/include/misc.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/misc.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/misc.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -145,6 +145,9 @@ IntSafeCopyUnicodeStringTerminateNULL(PUNICODE_STRING Dest, PUNICODE_STRING Source);
+HBITMAP NTAPI UserLoadImage(PCWSTR); + +BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING);
#define ROUND_DOWN(n, align) \ (((ULONG)n) & ~((align) - 1l))
Modified: trunk/reactos/subsystems/win32/win32k/include/painting.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/painting.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/painting.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -5,3 +5,5 @@ BOOL FASTCALL IntGetPaintMessage(PWND Window, UINT MsgFilterMin, UINT MsgFilterMax, PTHREADINFO Thread, MSG *Message, BOOL Remove); INT FASTCALL UserRealizePalette(HDC); INT FASTCALL co_UserGetUpdateRgn(PWND, HRGN, BOOL); +VOID FASTCALL co_IntPaintWindows(PWND Window, ULONG Flags, BOOL Recurse); +BOOL FASTCALL IntValidateParent(PWND Child, HRGN hValidateRgn, BOOL Recurse);
Modified: trunk/reactos/subsystems/win32/win32k/include/sysparams.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/sysparams.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/sysparams.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -175,3 +175,6 @@ } SPIBUFFER;
extern SPIVALUES gspv; + +BOOL InitSysParams(); +
Modified: trunk/reactos/subsystems/win32/win32k/include/win32kdebug.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/inc... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/win32kdebug.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/win32kdebug.h [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -177,4 +177,6 @@ #define UNIMPLEMENTED #endif
+#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) + BOOL DbgInitDebugChannels();
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -38,10 +38,6 @@
DBG_DEFAULT_CHANNEL(UserAccel);
-UINT FASTCALL IntFindSubMenu(HMENU *hMenu, HMENU hSubTarget ); -HMENU FASTCALL IntGetSubMenu( HMENU hMenu, int nPos); -UINT FASTCALL IntGetMenuState( HMENU hMenu, UINT uId, UINT uFlags); - /* FUNCTIONS *****************************************************************/
PACCELERATOR_TABLE FASTCALL UserGetAccelObject(HACCEL hAccel)
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/callproc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/callproc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/callproc.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -10,9 +10,6 @@ /* INCLUDES ******************************************************************/
#include <win32k.h> - -#define NDEBUG -#include <debug.h>
/* CALLPROC ******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/display.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -11,8 +11,6 @@ #include <intrin.h>
DBG_DEFAULT_CHANNEL(UserDisplay); - -BOOL InitSysParams();
BOOL gbBaseVideo = 0;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -19,11 +19,6 @@ PKBL KBLList = NULL; // Keyboard layout list.
typedef PVOID (*KbdLayerDescriptor)(VOID); -NTSTATUS APIENTRY LdrGetProcedureAddress(PVOID module, - PANSI_STRING import_name, - DWORD flags, - PVOID *func_addr); -
/* PRIVATE FUNCTIONS ******************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -13,8 +13,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserMsg); - -BOOLEAN NTAPI PsGetProcessExitProcessCalled(PEPROCESS Process);
#define PM_BADMSGFLAGS ~((QS_RAWINPUT << 16)|PM_QS_SENDMESSAGE|PM_QS_PAINT|PM_QS_POSTMESSAGE|PM_QS_INPUT|PM_NOYIELD|PM_REMOVE)
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -15,8 +15,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserMsgQ); - -VOID FASTCALL DoTheScreenSaver(VOID);
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -12,8 +12,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserMisc); - -BOOL InitSysParams();
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -13,13 +13,8 @@
#include <win32k.h>
-#include <winsta.h> - DBG_DEFAULT_CHANNEL(UserSysparams);
-#define KeRosDumpStackFrames(Frames, Count) KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, KernelMode) -HBITMAP NTAPI UserLoadImage(PCWSTR); -BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING);
SPIVALUES gspv; BOOL gbSpiInitialized = FALSE;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/timer.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -15,8 +15,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserTimer); - -WORD FASTCALL get_key_state(void);
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -12,8 +12,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserDce); - -int FASTCALL CLIPPING_UpdateGCRegion(DC* Dc);
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -30,12 +30,6 @@ #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserWinpos); - -VOID FASTCALL -co_IntPaintWindows(PWND Window, ULONG Flags, BOOL Recurse); - -BOOL FASTCALL -IntValidateParent(PWND Child, HRGN hValidateRgn, BOOL Recurse);
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/objects/dclife.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] Tue Sep 20 18:04:14 2011 @@ -457,9 +457,6 @@ return TRUE; }
-int FASTCALL -CLIPPING_UpdateGCRegion(DC* Dc); - static void DC_vUpdateDC(PDC pdc)