/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
- * PURPOSE: Misc User funcs
+ * PROJECT: ReactOS Win32k subsystem
+ * PURPOSE: Miscellaneous User functions
* FILE: subsystems/win32/win32k/ntuser/misc.c
* PROGRAMER: Ge van Geldorp (ge@gse.nl)
*/
ret = (DWORD_PTR)IntGetThreadFocusWindow();
break;
case THREADSTATE_CAPTUREWINDOW:
- /* FIXME should use UserEnterShared */
+ /* FIXME: Should use UserEnterShared */
ret = (DWORD_PTR)IntGetCapture();
break;
case THREADSTATE_PROGMANWINDOW:
else
ret = ISMEX_NOTIFY;
}
- /* if ReplyMessage */
+ /* If ReplyMessage */
if (Message->QS_Flags & QS_SMRESULT) ret |= ISMEX_REPLIED;
}
BOOL
APIENTRY
NtUserGetGUIThreadInfo(
- DWORD idThread, /* if NULL use foreground thread */
+ DWORD idThread, /* If NULL use foreground thread */
LPGUITHREADINFO lpgui)
{
NTSTATUS Status;
Desktop = W32Thread->rpdesk;
}
else
- { /* get the foreground thread */
+ { /* Get the foreground thread */
Thread = PsGetCurrentThread();
W32Thread = (PTHREADINFO)Thread->Tcb.Win32Thread;
Desktop = W32Thread->rpdesk;
if (MsgQueue->MoveSize)
SafeGui.flags |= GUI_INMOVESIZE;
- /* FIXME add flag GUI_16BITTASK */
+ /* FIXME: Add flag GUI_16BITTASK */
SafeGui.hwndActive = MsgQueue->ActiveWindow;
SafeGui.hwndFocus = MsgQueue->FocusWindow;
return STATUS_SUCCESS;
}
- /* string is empty */
+ /* String is empty */
return STATUS_SUCCESS;
}
return Status;
}
- /* make sure the string is null-terminated */
+ /* Make sure the string is null-terminated */
Src = (PWSTR)((PBYTE)Dest->Buffer + Dest->Length);
*Src = L'\0';
return STATUS_SUCCESS;
}
- /* string is empty */
+ /* String is empty */
return STATUS_SUCCESS;
}
if (pti == NULL)
{
- /* FIXME - temporary hack for system threads... */
+ /* FIXME: Temporary hack for system threads... */
return NULL;
}
- /* initialize it */
+ /* Initialize it */
pti->ppi = ppi = GetW32ProcessInfo();
if (pti->rpdesk != NULL)
{
pti->pDeskInfo = NULL;
}
- /* update the TEB */
+ /* Update the TEB */
Teb = NtCurrentTeb();
pci = GetWin32ClientInfo();
pti->pClientInfo = pci;
return pti;
}
-
/* EOF */