*
* Copyright 1995 Thomas Sandford
* Copyright 1997 Marcus Meissner
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "windef.h"
#include "winuser.h"
#include "winerror.h"
-#include "debugtools.h"
+#include "wine/debug.h"
-DEFAULT_DEBUG_CHANNEL(win);
+WINE_DEFAULT_DEBUG_CHANNEL(win);
/**********************************************************************
- * SetLastErrorEx [USER32.485] Sets the last-error code.
+ * SetLastErrorEx [USER32.@] Sets the last-error code.
*
* RETURNS
* None.
/******************************************************************************
- * GetProcessWindowStation [USER32.280] Returns handle of window station
+ * GetProcessWindowStation [USER32.@] Returns handle of window station
*
* NOTES
* Docs say the return value is HWINSTA
* Success: Handle to window station associated with calling process
* Failure: NULL
*/
-DWORD WINAPI GetProcessWindowStation(void)
+HWINSTA WINAPI GetProcessWindowStation(void)
{
FIXME("(void): stub\n");
- return 1;
+ return (HWINSTA)1;
}
/******************************************************************************
- * GetThreadDesktop [USER32.295] Returns handle to desktop
+ * GetThreadDesktop [USER32.@] Returns handle to desktop
*
* NOTES
* Docs say the return value is HDESK
/******************************************************************************
- * SetDebugErrorLevel [USER32.475]
+ * SetDebugErrorLevel [USER32.@]
* Sets the minimum error level for generating debugging events
*
* PARAMS
/******************************************************************************
- * GetProcessDefaultLayout [USER32.802]
+ * GetProcessDefaultLayout [USER32.@]
*
* Gets the default layout for parentless windows.
* Right now, just returns 0 (left-to-right).
/******************************************************************************
- * SetProcessDefaultLayout [USER32.803]
+ * SetProcessDefaultLayout [USER32.@]
*
* Sets the default layout for parentless windows.
* Right now, only accepts 0 (left-to-right).
/******************************************************************************
- * OpenDesktopA [USER32.408]
+ * OpenDesktopA [USER32.@]
*
* NOTES
* Return type should be HDESK
*
* Not supported on Win9x - returns NULL and calls SetLastError.
*/
-HANDLE WINAPI OpenDesktopA( LPCSTR lpszDesktop, DWORD dwFlags,
+HANDLE WINAPI OpenDesktopA( LPCSTR lpszDesktop, DWORD dwFlags,
BOOL fInherit, DWORD dwDesiredAccess )
{
FIXME("(%s,%lx,%i,%lx): stub\n",debugstr_a(lpszDesktop),dwFlags,
/******************************************************************************
- * SetUserObjectInformationA (USER32.512)
+ * SetUserObjectInformationA (USER32.@)
*/
-BOOL WINAPI SetUserObjectInformationA( HANDLE hObj, INT nIndex,
+BOOL WINAPI SetUserObjectInformationA( HANDLE hObj, INT nIndex,
LPVOID pvInfo, DWORD nLength )
{
- FIXME("(%x,%d,%p,%lx): stub\n",hObj,nIndex,pvInfo,nLength);
+ FIXME("(%p,%d,%p,%lx): stub\n",hObj,nIndex,pvInfo,nLength);
return TRUE;
}
/******************************************************************************
- * SetThreadDesktop (USER32.510)
+ * SetThreadDesktop (USER32.@)
*/
BOOL WINAPI SetThreadDesktop( HANDLE hDesktop )
{
- FIXME("(%x): stub\n",hDesktop);
+ FIXME("(%p): stub\n",hDesktop);
return TRUE;
}
/***********************************************************************
- * RegisterShellHookWindow [USER32.459]
+ * RegisterShellHookWindow [USER32.@]
*/
-HRESULT WINAPI RegisterShellHookWindow ( DWORD u )
+BOOL WINAPI RegisterShellHookWindow ( HWND hWnd )
{
- FIXME("0x%08lx stub\n",u);
+ FIXME("(%p): stub\n", hWnd);
return 0;
}
/***********************************************************************
- * DeregisterShellHookWindow [USER32.132]
+ * DeregisterShellHookWindow [USER32.@]
*/
HRESULT WINAPI DeregisterShellHookWindow ( DWORD u )
{
FIXME("0x%08lx stub\n",u);
return 0;
-
+
}
/***********************************************************************
- * RegisterTaskList [USER23.436]
+ * RegisterTasklist [USER32.@]
*/
-DWORD WINAPI RegisterTaskList (DWORD x)
+DWORD WINAPI RegisterTasklist (DWORD x)
{
FIXME("0x%08lx\n",x);
return TRUE;
}
+
+
+/***********************************************************************
+ * GetAppCompatFlags (USER32.@)
+ */
+DWORD WINAPI GetAppCompatFlags( HTASK hTask )
+{
+ FIXME("stub\n");
+ return 0;
+}
+
+
+/***********************************************************************
+ * AlignRects (USER32.@)
+ */
+BOOL WINAPI AlignRects(LPRECT rect, DWORD b, DWORD c, DWORD d)
+{
+ FIXME("(%p, %ld, %ld, %ld): stub\n", rect, b, c, d);
+ if (rect)
+ FIXME("rect: [[%ld, %ld], [%ld, %ld]]\n", rect->left, rect->top, rect->right, rect->bottom);
+ /* Calls OffsetRect */
+ return FALSE;
+}
+
+
+/***********************************************************************
+ * USER_489 (USER.489)
+ */
+LONG WINAPI stub_USER_489(void) { FIXME("stub\n"); return 0; }
+
+/***********************************************************************
+ * USER_490 (USER.490)
+ */
+LONG WINAPI stub_USER_490(void) { FIXME("stub\n"); return 0; }
+
+/***********************************************************************
+ * USER_492 (USER.492)
+ */
+LONG WINAPI stub_USER_492(void) { FIXME("stub\n"); return 0; }
+
+/***********************************************************************
+ * USER_496 (USER.496)
+ */
+LONG WINAPI stub_USER_496(void) { FIXME("stub\n"); return 0; }