mirror of
https://github.com/reactos/reactos.git
synced 2025-05-11 13:27:47 +00:00
Sprinkle win32k with some explicit voids,
svn path=/trunk/; revision=42926
This commit is contained in:
parent
4a1bc02d08
commit
d412903cb1
21 changed files with 42 additions and 42 deletions
|
@ -12,10 +12,10 @@ typedef struct _ACCELERATOR_TABLE
|
||||||
} ACCELERATOR_TABLE, *PACCELERATOR_TABLE;
|
} ACCELERATOR_TABLE, *PACCELERATOR_TABLE;
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
InitAcceleratorImpl();
|
InitAcceleratorImpl(VOID);
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
CleanupAcceleratorImpl();
|
CleanupAcceleratorImpl(VOID);
|
||||||
|
|
||||||
PACCELERATOR_TABLE FASTCALL UserGetAccelObject(HACCEL);
|
PACCELERATOR_TABLE FASTCALL UserGetAccelObject(HACCEL);
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntPrepareDriverIfNeeded();
|
IntPrepareDriverIfNeeded(VOID);
|
||||||
extern PDEVOBJ PrimarySurface;
|
extern PDEVOBJ PrimarySurface;
|
||||||
|
|
||||||
#endif /* not __WIN32K_DC_H */
|
#endif /* not __WIN32K_DC_H */
|
||||||
|
|
|
@ -10,7 +10,7 @@ SetLastWin32Error(
|
||||||
DWORD Status);
|
DWORD Status);
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
GetLastNtError();
|
GetLastNtError(VOID);
|
||||||
|
|
||||||
#endif /* _WIN32K_ERROR_H */
|
#endif /* _WIN32K_ERROR_H */
|
||||||
|
|
||||||
|
|
|
@ -5,17 +5,17 @@
|
||||||
* These functions take the window handles from current message queue.
|
* These functions take the window handles from current message queue.
|
||||||
*/
|
*/
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetCaptureWindow();
|
IntGetCaptureWindow(VOID);
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetFocusWindow();
|
IntGetFocusWindow(VOID);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These functions take the window handles from current thread queue.
|
* These functions take the window handles from current thread queue.
|
||||||
*/
|
*/
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetThreadFocusWindow();
|
IntGetThreadFocusWindow(VOID);
|
||||||
HWND APIENTRY IntGetCapture();
|
HWND APIENTRY IntGetCapture(VOID);
|
||||||
HWND FASTCALL UserGetActiveWindow();
|
HWND FASTCALL UserGetActiveWindow(VOID);
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
co_IntMouseActivateWindow(PWINDOW_OBJECT Window);
|
co_IntMouseActivateWindow(PWINDOW_OBJECT Window);
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#define _WIN32K_GUICHECK_H
|
#define _WIN32K_GUICHECK_H
|
||||||
|
|
||||||
BOOL FASTCALL co_IntGraphicsCheck(BOOL Create);
|
BOOL FASTCALL co_IntGraphicsCheck(BOOL Create);
|
||||||
BOOL FASTCALL IntCreatePrimarySurface();
|
BOOL FASTCALL IntCreatePrimarySurface(VOID);
|
||||||
VOID FASTCALL IntDestroyPrimarySurface();
|
VOID FASTCALL IntDestroyPrimarySurface(VOID);
|
||||||
|
|
||||||
NTSTATUS FASTCALL InitGuiCheckImpl (VOID);
|
NTSTATUS FASTCALL InitGuiCheckImpl (VOID);
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ typedef struct _HOT_KEY_ITEM
|
||||||
} HOT_KEY_ITEM, *PHOT_KEY_ITEM;
|
} HOT_KEY_ITEM, *PHOT_KEY_ITEM;
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
InitHotkeyImpl();
|
InitHotkeyImpl(VOID);
|
||||||
|
|
||||||
//NTSTATUS FASTCALL
|
//NTSTATUS FASTCALL
|
||||||
//CleanupHotKeys(PWINSTATION_OBJECT WinStaObject);
|
//CleanupHotKeys(PWINSTATION_OBJECT WinStaObject);
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern BOOL APIENTRY IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave);
|
||||||
extern HGDIOBJ StockObjects[];
|
extern HGDIOBJ StockObjects[];
|
||||||
extern SHORT gusLanguageID;
|
extern SHORT gusLanguageID;
|
||||||
|
|
||||||
SHORT FASTCALL IntGdiGetLanguageID();
|
SHORT FASTCALL IntGdiGetLanguageID(VOID);
|
||||||
DWORD APIENTRY IntGetQueueStatus(BOOL ClearChanges);
|
DWORD APIENTRY IntGetQueueStatus(BOOL ClearChanges);
|
||||||
VOID FASTCALL IntUserManualGuiCheck(LONG Check);
|
VOID FASTCALL IntUserManualGuiCheck(LONG Check);
|
||||||
PVOID APIENTRY HackSecureVirtualMemory(IN PVOID,IN SIZE_T,IN ULONG,OUT PVOID *);
|
PVOID APIENTRY HackSecureVirtualMemory(IN PVOID,IN SIZE_T,IN ULONG,OUT PVOID *);
|
||||||
|
|
|
@ -17,8 +17,8 @@ VOID FASTCALL CleanupUserImpl(VOID);
|
||||||
VOID FASTCALL UserEnterShared(VOID);
|
VOID FASTCALL UserEnterShared(VOID);
|
||||||
VOID FASTCALL UserEnterExclusive(VOID);
|
VOID FASTCALL UserEnterExclusive(VOID);
|
||||||
VOID FASTCALL UserLeave(VOID);
|
VOID FASTCALL UserLeave(VOID);
|
||||||
BOOL FASTCALL UserIsEntered();
|
BOOL FASTCALL UserIsEntered(VOID);
|
||||||
BOOL FASTCALL UserIsEnteredExclusive();
|
BOOL FASTCALL UserIsEnteredExclusive(VOID);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _WIN32K_NTUSER_H */
|
#endif /* _WIN32K_NTUSER_H */
|
||||||
|
|
|
@ -115,7 +115,7 @@ HANDLE UserAllocHandle(PUSER_HANDLE_TABLE ht, PVOID object, USER_OBJECT_TYPE typ
|
||||||
BOOL UserFreeHandle(PUSER_HANDLE_TABLE ht, HANDLE handle );
|
BOOL UserFreeHandle(PUSER_HANDLE_TABLE ht, HANDLE handle );
|
||||||
PVOID UserGetNextHandle(PUSER_HANDLE_TABLE ht, HANDLE* handle, USER_OBJECT_TYPE type );
|
PVOID UserGetNextHandle(PUSER_HANDLE_TABLE ht, HANDLE* handle, USER_OBJECT_TYPE type );
|
||||||
PUSER_HANDLE_ENTRY handle_to_entry(PUSER_HANDLE_TABLE ht, HANDLE handle );
|
PUSER_HANDLE_ENTRY handle_to_entry(PUSER_HANDLE_TABLE ht, HANDLE handle );
|
||||||
BOOL FASTCALL UserCreateHandleTable();
|
BOOL FASTCALL UserCreateHandleTable(VOID);
|
||||||
VOID UserInitHandleTable(PUSER_HANDLE_TABLE ht, PVOID mem, ULONG bytes);
|
VOID UserInitHandleTable(PUSER_HANDLE_TABLE ht, PVOID mem, ULONG bytes);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ UserGetClientOrigin(PWINDOW_OBJECT Window, LPPOINT Point);
|
||||||
|
|
||||||
/*************** FOCUS.C ***************/
|
/*************** FOCUS.C ***************/
|
||||||
|
|
||||||
HWND FASTCALL UserGetActiveWindow();
|
HWND FASTCALL UserGetActiveWindow(VOID);
|
||||||
|
|
||||||
HWND FASTCALL UserGetForegroundWindow(VOID);
|
HWND FASTCALL UserGetForegroundWindow(VOID);
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ PWINDOW_OBJECT FASTCALL UserGetWindowObject(HWND hWnd);
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
co_DestroyThreadWindows(struct _ETHREAD *Thread);
|
co_DestroyThreadWindows(struct _ETHREAD *Thread);
|
||||||
|
|
||||||
HWND FASTCALL UserGetShellWindow();
|
HWND FASTCALL UserGetShellWindow(VOID);
|
||||||
|
|
||||||
HWND FASTCALL UserGetWindow(HWND hWnd, UINT Relationship);
|
HWND FASTCALL UserGetWindow(HWND hWnd, UINT Relationship);
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ SetLastWin32Error(DWORD Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
GetLastNtError()
|
GetLastNtError(VOID)
|
||||||
{
|
{
|
||||||
PTEB Teb = PsGetCurrentThread()->Tcb.Teb;
|
PTEB Teb = PsGetCurrentThread()->Tcb.Teb;
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ IntIsWindowInChain(PWINDOW_OBJECT window)
|
||||||
return wce;
|
return wce;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL printChain()
|
VOID FASTCALL printChain(VOID)
|
||||||
{
|
{
|
||||||
/*test*/
|
/*test*/
|
||||||
PCLIPBOARDCHAINELEMENT wce2 = WindowsChain;
|
PCLIPBOARDCHAINELEMENT wce2 = WindowsChain;
|
||||||
|
@ -148,7 +148,7 @@ intIsFormatAvailable(UINT format)
|
||||||
|
|
||||||
/* counts how many distinct format were are in the clipboard */
|
/* counts how many distinct format were are in the clipboard */
|
||||||
DWORD FASTCALL
|
DWORD FASTCALL
|
||||||
IntCountClipboardFormats()
|
IntCountClipboardFormats(VOID)
|
||||||
{
|
{
|
||||||
DWORD ret = 0;
|
DWORD ret = 0;
|
||||||
PCLIPBOARDELEMENT ce = ClipboardData;
|
PCLIPBOARDELEMENT ce = ClipboardData;
|
||||||
|
@ -221,7 +221,7 @@ intRemoveFormatedData(UINT format)
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
IntEmptyClipboardData()
|
IntEmptyClipboardData(VOID)
|
||||||
{
|
{
|
||||||
PCLIPBOARDELEMENT ce = ClipboardData;
|
PCLIPBOARDELEMENT ce = ClipboardData;
|
||||||
PCLIPBOARDELEMENT tmp;
|
PCLIPBOARDELEMENT tmp;
|
||||||
|
@ -322,7 +322,7 @@ synthesizeData(UINT format)
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
freeSynthesizedData()
|
freeSynthesizedData(VOID)
|
||||||
{
|
{
|
||||||
ExFreePool(synthesizedData);
|
ExFreePool(synthesizedData);
|
||||||
}
|
}
|
||||||
|
@ -330,7 +330,7 @@ freeSynthesizedData()
|
||||||
/*==============================================================*/
|
/*==============================================================*/
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
intIsClipboardOpenByMe()
|
intIsClipboardOpenByMe(VOID)
|
||||||
{
|
{
|
||||||
/* check if we open the clipboard */
|
/* check if we open the clipboard */
|
||||||
if (ClipboardThread && ClipboardThread == PsGetCurrentThreadWin32Thread())
|
if (ClipboardThread && ClipboardThread == PsGetCurrentThreadWin32Thread())
|
||||||
|
|
|
@ -24,21 +24,21 @@
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetCaptureWindow()
|
IntGetCaptureWindow(VOID)
|
||||||
{
|
{
|
||||||
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
|
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
|
||||||
return ForegroundQueue != NULL ? ForegroundQueue->CaptureWindow : 0;
|
return ForegroundQueue != NULL ? ForegroundQueue->CaptureWindow : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetFocusWindow()
|
IntGetFocusWindow(VOID)
|
||||||
{
|
{
|
||||||
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
|
PUSER_MESSAGE_QUEUE ForegroundQueue = IntGetFocusMessageQueue();
|
||||||
return ForegroundQueue != NULL ? ForegroundQueue->FocusWindow : 0;
|
return ForegroundQueue != NULL ? ForegroundQueue->FocusWindow : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
IntGetThreadFocusWindow()
|
IntGetThreadFocusWindow(VOID)
|
||||||
{
|
{
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
PUSER_MESSAGE_QUEUE ThreadQueue;
|
PUSER_MESSAGE_QUEUE ThreadQueue;
|
||||||
|
@ -445,7 +445,7 @@ CLEANUP:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HWND FASTCALL UserGetActiveWindow()
|
HWND FASTCALL UserGetActiveWindow(VOID)
|
||||||
{
|
{
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
PUSER_MESSAGE_QUEUE ThreadQueue;
|
PUSER_MESSAGE_QUEUE ThreadQueue;
|
||||||
|
|
|
@ -53,7 +53,7 @@ LIST_ENTRY gHotkeyList;
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
InitHotkeyImpl()
|
InitHotkeyImpl(VOID)
|
||||||
{
|
{
|
||||||
InitializeListHead(&gHotkeyList);
|
InitializeListHead(&gHotkeyList);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ InitHotkeyImpl()
|
||||||
|
|
||||||
#if 0 //not used
|
#if 0 //not used
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
CleanupHotKeys()
|
CleanupHotKeys(VOID)
|
||||||
{
|
{
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
SHORT
|
SHORT
|
||||||
FASTCALL
|
FASTCALL
|
||||||
IntGdiGetLanguageID()
|
IntGdiGetLanguageID(VOID)
|
||||||
{
|
{
|
||||||
HANDLE KeyHandle;
|
HANDLE KeyHandle;
|
||||||
ULONG Size = sizeof(WCHAR) * (MAX_PATH + 12);
|
ULONG Size = sizeof(WCHAR) * (MAX_PATH + 12);
|
||||||
|
|
|
@ -180,13 +180,13 @@ NtUserInitialize(
|
||||||
RETURN
|
RETURN
|
||||||
True if current thread owns the lock (possibly shared)
|
True if current thread owns the lock (possibly shared)
|
||||||
*/
|
*/
|
||||||
BOOL FASTCALL UserIsEntered()
|
BOOL FASTCALL UserIsEntered(VOID)
|
||||||
{
|
{
|
||||||
return ExIsResourceAcquiredExclusiveLite(&UserLock)
|
return ExIsResourceAcquiredExclusiveLite(&UserLock)
|
||||||
|| ExIsResourceAcquiredSharedLite(&UserLock);
|
|| ExIsResourceAcquiredSharedLite(&UserLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL FASTCALL UserIsEnteredExclusive()
|
BOOL FASTCALL UserIsEnteredExclusive(VOID)
|
||||||
{
|
{
|
||||||
return ExIsResourceAcquiredExclusiveLite(&UserLock);
|
return ExIsResourceAcquiredExclusiveLite(&UserLock);
|
||||||
}
|
}
|
||||||
|
|
|
@ -402,7 +402,7 @@ BOOL FASTCALL UserDereferenceObject(PVOID obj)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BOOL FASTCALL UserCreateHandleTable()
|
BOOL FASTCALL UserCreateHandleTable(VOID)
|
||||||
{
|
{
|
||||||
|
|
||||||
PVOID mem;
|
PVOID mem;
|
||||||
|
|
|
@ -713,7 +713,7 @@ DceFreeClassDCE(HDC hDC)
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
DceEmptyCache()
|
DceEmptyCache(VOID)
|
||||||
{
|
{
|
||||||
PDCE pDCE = FirstDce;
|
PDCE pDCE = FirstDce;
|
||||||
KeEnterCriticalRegion();
|
KeEnterCriticalRegion();
|
||||||
|
|
|
@ -3272,7 +3272,7 @@ CLEANUP:
|
||||||
* Status
|
* Status
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
HWND FASTCALL UserGetShellWindow()
|
HWND FASTCALL UserGetShellWindow(VOID)
|
||||||
{
|
{
|
||||||
PWINSTATION_OBJECT WinStaObject;
|
PWINSTATION_OBJECT WinStaObject;
|
||||||
HWND Ret;
|
HWND Ret;
|
||||||
|
|
|
@ -202,7 +202,7 @@ SetupDevMode(PDEVMODEW DevMode, ULONG DisplayNumber)
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL FASTCALL
|
static BOOL FASTCALL
|
||||||
IntPrepareDriver()
|
IntPrepareDriver(VOID)
|
||||||
{
|
{
|
||||||
PFN_DrvEnableDriver GDEnableDriver;
|
PFN_DrvEnableDriver GDEnableDriver;
|
||||||
DRVENABLEDATA DED;
|
DRVENABLEDATA DED;
|
||||||
|
@ -437,13 +437,13 @@ cleanup:
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntPrepareDriverIfNeeded()
|
IntPrepareDriverIfNeeded(VOID)
|
||||||
{
|
{
|
||||||
return (PrimarySurface.PreparedDriver ? TRUE : IntPrepareDriver());
|
return (PrimarySurface.PreparedDriver ? TRUE : IntPrepareDriver());
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL FASTCALL
|
static BOOL FASTCALL
|
||||||
PrepareVideoPrt()
|
PrepareVideoPrt(VOID)
|
||||||
{
|
{
|
||||||
PIRP Irp;
|
PIRP Irp;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -499,7 +499,7 @@ PrepareVideoPrt()
|
||||||
|
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntCreatePrimarySurface()
|
IntCreatePrimarySurface(VOID)
|
||||||
{
|
{
|
||||||
SIZEL SurfSize;
|
SIZEL SurfSize;
|
||||||
RECTL SurfaceRect;
|
RECTL SurfaceRect;
|
||||||
|
@ -573,7 +573,7 @@ IntCreatePrimarySurface()
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
IntDestroyPrimarySurface()
|
IntDestroyPrimarySurface(VOID)
|
||||||
{
|
{
|
||||||
BOOL calledFromUser;
|
BOOL calledFromUser;
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ LockErrorDebugOutput(HGDIOBJ hObj, PGDI_TABLE_ENTRY Entry, LPSTR Function)
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
FASTCALL
|
FASTCALL
|
||||||
InterlockedPopFreeEntry()
|
InterlockedPopFreeEntry(VOID)
|
||||||
{
|
{
|
||||||
ULONG idxFirst, idxNext, idxPrev;
|
ULONG idxFirst, idxNext, idxPrev;
|
||||||
PGDI_TABLE_ENTRY pEntry;
|
PGDI_TABLE_ENTRY pEntry;
|
||||||
|
|
Loading…
Reference in a new issue