mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 14:08:22 +00:00
[NTUSER] Add 'Win:' comments to some functions (#4453)
This commit is contained in:
parent
6ff0232368
commit
567b0700fe
9 changed files with 18 additions and 1 deletions
|
@ -21,6 +21,7 @@ EngGetLastError(VOID)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
* http://msdn.microsoft.com/en-us/library/ff565015%28VS.85%29.aspx
|
* http://msdn.microsoft.com/en-us/library/ff565015%28VS.85%29.aspx
|
||||||
|
* Win: UserSetLastError
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
APIENTRY
|
APIENTRY
|
||||||
|
|
|
@ -1344,6 +1344,7 @@ PWND FASTCALL co_GetDesktopWindow(PWND pWnd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: _GetDesktopWindow
|
||||||
HWND FASTCALL IntGetDesktopWindow(VOID)
|
HWND FASTCALL IntGetDesktopWindow(VOID)
|
||||||
{
|
{
|
||||||
PDESKTOP pdo = IntGetActiveDesktop();
|
PDESKTOP pdo = IntGetActiveDesktop();
|
||||||
|
@ -1368,6 +1369,7 @@ PWND FASTCALL UserGetDesktopWindow(VOID)
|
||||||
return UserGetWindowObject(pdo->DesktopWindow);
|
return UserGetWindowObject(pdo->DesktopWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: _GetMessageWindow
|
||||||
HWND FASTCALL IntGetMessageWindow(VOID)
|
HWND FASTCALL IntGetMessageWindow(VOID)
|
||||||
{
|
{
|
||||||
PDESKTOP pdo = IntGetActiveDesktop();
|
PDESKTOP pdo = IntGetActiveDesktop();
|
||||||
|
|
|
@ -475,6 +475,7 @@ IsRemoveAttachThread(PTHREADINFO pti)
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: zzzAttachThreadInput
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
|
UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,6 +35,7 @@ _scwprintf(
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test the Thread to verify and validate it. Hard to the core tests are required.
|
* Test the Thread to verify and validate it. Hard to the core tests are required.
|
||||||
|
* Win: PtiFromThreadId
|
||||||
*/
|
*/
|
||||||
PTHREADINFO
|
PTHREADINFO
|
||||||
FASTCALL
|
FASTCALL
|
||||||
|
|
|
@ -238,12 +238,14 @@ VOID FASTCALL CleanupUserImpl(VOID)
|
||||||
ExDeleteResourceLite(&UserLock);
|
ExDeleteResourceLite(&UserLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: EnterSharedCrit
|
||||||
VOID FASTCALL UserEnterShared(VOID)
|
VOID FASTCALL UserEnterShared(VOID)
|
||||||
{
|
{
|
||||||
KeEnterCriticalRegion();
|
KeEnterCriticalRegion();
|
||||||
ExAcquireResourceSharedLite(&UserLock, TRUE);
|
ExAcquireResourceSharedLite(&UserLock, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: EnterCrit
|
||||||
VOID FASTCALL UserEnterExclusive(VOID)
|
VOID FASTCALL UserEnterExclusive(VOID)
|
||||||
{
|
{
|
||||||
ASSERT_NOGDILOCKS();
|
ASSERT_NOGDILOCKS();
|
||||||
|
@ -252,6 +254,7 @@ VOID FASTCALL UserEnterExclusive(VOID)
|
||||||
gptiCurrent = PsGetCurrentThreadWin32Thread();
|
gptiCurrent = PsGetCurrentThreadWin32Thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: LeaveCrit
|
||||||
VOID FASTCALL UserLeave(VOID)
|
VOID FASTCALL UserLeave(VOID)
|
||||||
{
|
{
|
||||||
ASSERT_NOGDILOCKS();
|
ASSERT_NOGDILOCKS();
|
||||||
|
|
|
@ -1430,6 +1430,7 @@ IntFlashWindowEx(PWND pWnd, PFLASHWINFO pfwi)
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: xxxBeginPaint
|
||||||
HDC FASTCALL
|
HDC FASTCALL
|
||||||
IntBeginPaint(PWND Window, PPAINTSTRUCT Ps)
|
IntBeginPaint(PWND Window, PPAINTSTRUCT Ps)
|
||||||
{
|
{
|
||||||
|
@ -1526,6 +1527,7 @@ IntBeginPaint(PWND Window, PPAINTSTRUCT Ps)
|
||||||
return Ps->hdc;
|
return Ps->hdc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: xxxEndPaint
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntEndPaint(PWND Wnd, PPAINTSTRUCT Ps)
|
IntEndPaint(PWND Wnd, PPAINTSTRUCT Ps)
|
||||||
{
|
{
|
||||||
|
@ -1548,6 +1550,7 @@ IntEndPaint(PWND Wnd, PPAINTSTRUCT Ps)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: xxxFillWindow
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntFillWindow(PWND pWndParent,
|
IntFillWindow(PWND pWndParent,
|
||||||
PWND pWnd,
|
PWND pWnd,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Win: ValidateHmenu
|
||||||
FORCEINLINE PMENU UserGetMenuObject(HMENU hMenu)
|
FORCEINLINE PMENU UserGetMenuObject(HMENU hMenu)
|
||||||
{
|
{
|
||||||
PMENU pMenu = UserGetObject(gHandleTable, hMenu, TYPE_MENU);
|
PMENU pMenu = UserGetObject(gHandleTable, hMenu, TYPE_MENU);
|
||||||
|
|
|
@ -121,6 +121,7 @@ PWND FASTCALL ValidateHwndNoErr(HWND hWnd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Temp HACK */
|
/* Temp HACK */
|
||||||
|
// Win: ValidateHwnd
|
||||||
PWND FASTCALL UserGetWindowObject(HWND hWnd)
|
PWND FASTCALL UserGetWindowObject(HWND hWnd)
|
||||||
{
|
{
|
||||||
PWND Window;
|
PWND Window;
|
||||||
|
@ -1263,6 +1264,7 @@ co_IntSetParent(PWND Wnd, PWND WndNewParent)
|
||||||
return WndOldParent;
|
return WndOldParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: xxxSetParent
|
||||||
HWND FASTCALL
|
HWND FASTCALL
|
||||||
co_UserSetParent(HWND hWndChild, HWND hWndNewParent)
|
co_UserSetParent(HWND hWndChild, HWND hWndNewParent)
|
||||||
{
|
{
|
||||||
|
@ -2128,6 +2130,7 @@ Error:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
* Win: xxxCreateWindowEx
|
||||||
*/
|
*/
|
||||||
PWND FASTCALL
|
PWND FASTCALL
|
||||||
co_UserCreateWindowEx(CREATESTRUCTW* Cs,
|
co_UserCreateWindowEx(CREATESTRUCTW* Cs,
|
||||||
|
@ -2742,7 +2745,7 @@ cleanup:
|
||||||
return hwnd;
|
return hwnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: xxxDestroyWindow
|
||||||
BOOLEAN co_UserDestroyWindow(PVOID Object)
|
BOOLEAN co_UserDestroyWindow(PVOID Object)
|
||||||
{
|
{
|
||||||
HWND hWnd;
|
HWND hWnd;
|
||||||
|
|
|
@ -551,6 +551,7 @@ WinPosInitInternalPos(PWND Wnd, RECTL *RestoreRect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Win: _GetWindowPlacement
|
||||||
BOOL
|
BOOL
|
||||||
FASTCALL
|
FASTCALL
|
||||||
IntGetWindowPlacement(PWND Wnd, WINDOWPLACEMENT *lpwndpl)
|
IntGetWindowPlacement(PWND Wnd, WINDOWPLACEMENT *lpwndpl)
|
||||||
|
@ -2484,6 +2485,7 @@ co_WinPosMinMaximize(PWND Wnd, UINT ShowFlag, RECT* NewPos)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ShowWindow does not set SWP_FRAMECHANGED!!! Fix wine msg test_SetParent:WmSetParentSeq_2:23 wParam bits!
|
ShowWindow does not set SWP_FRAMECHANGED!!! Fix wine msg test_SetParent:WmSetParentSeq_2:23 wParam bits!
|
||||||
|
Win: xxxShowWindow
|
||||||
*/
|
*/
|
||||||
BOOLEAN FASTCALL
|
BOOLEAN FASTCALL
|
||||||
co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
||||||
|
|
Loading…
Reference in a new issue