/* INCLUDES ******************************************************************/
-#include <w32k.h>
+#include <win32k.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS *****************************************************************/
-NTSTATUS FASTCALL
+INIT_FUNCTION
+NTSTATUS
+NTAPI
InitHotkeyImpl(VOID)
{
InitializeListHead(&gHotkeyList);
VOID FASTCALL
-UnregisterWindowHotKeys(PWINDOW_OBJECT Window)
+UnregisterWindowHotKeys(PWND Window)
{
PHOT_KEY_ITEM HotKeyItem, tmp;
LIST_FOR_EACH_SAFE(HotKeyItem, tmp, &gHotkeyList, HOT_KEY_ITEM, ListEntry)
{
- if (HotKeyItem->hWnd == Window->hSelf)
+ if (HotKeyItem->hWnd == Window->head.h)
{
RemoveEntryList (&HotKeyItem->ListEntry);
ExFreePool (HotKeyItem);
UINT vk)
{
PHOT_KEY_ITEM HotKeyItem;
- PWINDOW_OBJECT Window;
+ PWND Window;
PETHREAD HotKeyThread;
DECLARE_RETURN(BOOL);
{
RETURN( FALSE);
}
- HotKeyThread = Window->pti->pEThread;
+ HotKeyThread = Window->head.pti->pEThread;
}
/* Check for existing hotkey */
NtUserUnregisterHotKey(HWND hWnd, int id)
{
PHOT_KEY_ITEM HotKeyItem;
- PWINDOW_OBJECT Window;
+ PWND Window;
DECLARE_RETURN(BOOL);
DPRINT("Enter NtUserUnregisterHotKey\n");