mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
[NTUSER] Add UserHMSetHandle macro (#6164)
This commit is contained in:
parent
758fff284d
commit
f74a2aac8c
3 changed files with 3 additions and 2 deletions
|
@ -228,6 +228,7 @@ typedef struct _PROCMARKHEAD
|
||||||
} PROCMARKHEAD, *PPROCMARKHEAD;
|
} PROCMARKHEAD, *PPROCMARKHEAD;
|
||||||
|
|
||||||
#define UserHMGetHandle(obj) ((obj)->head.h)
|
#define UserHMGetHandle(obj) ((obj)->head.h)
|
||||||
|
#define UserHMSetHandle(obj, handle) ((obj)->head.h = (handle))
|
||||||
|
|
||||||
/* Window Client Information structure */
|
/* Window Client Information structure */
|
||||||
struct _ETHREAD;
|
struct _ETHREAD;
|
||||||
|
|
|
@ -371,7 +371,7 @@ NtUserSetWinEventHook(
|
||||||
InsertTailList(&GlobalEvents->Events, &pEH->Chain);
|
InsertTailList(&GlobalEvents->Events, &pEH->Chain);
|
||||||
GlobalEvents->Counts++;
|
GlobalEvents->Counts++;
|
||||||
|
|
||||||
UserHMGetHandle(pEH) = Handle;
|
UserHMSetHandle(pEH, Handle);
|
||||||
pEH->eventMin = eventMin;
|
pEH->eventMin = eventMin;
|
||||||
pEH->eventMax = eventMax;
|
pEH->eventMax = eventMax;
|
||||||
pEH->idProcess = idProcess; // These are cmp'ed
|
pEH->idProcess = idProcess; // These are cmp'ed
|
||||||
|
|
|
@ -57,7 +57,7 @@ CreateTimer(VOID)
|
||||||
Ret = UserCreateObject(gHandleTable, NULL, NULL, &Handle, TYPE_TIMER, sizeof(TIMER));
|
Ret = UserCreateObject(gHandleTable, NULL, NULL, &Handle, TYPE_TIMER, sizeof(TIMER));
|
||||||
if (Ret)
|
if (Ret)
|
||||||
{
|
{
|
||||||
Ret->head.h = Handle;
|
UserHMSetHandle(Ret, Handle);
|
||||||
InsertTailList(&TimersListHead, &Ret->ptmrList);
|
InsertTailList(&TimersListHead, &Ret->ptmrList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue