4 * Copyright 1995 Thomas Sandford
5 * Copyright 1997 Marcus Meissner
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(win
);
32 /**********************************************************************
33 * SetLastErrorEx [USER32.@] Sets the last-error code.
38 void WINAPI
SetLastErrorEx(
39 DWORD error
, /* [in] Per-thread error code */
40 DWORD type
) /* [in] Error type */
42 TRACE("(0x%08lx, 0x%08lx)\n", error
,type
);
49 /* Fall through for now */
51 FIXME("(error=%08lx, type=%08lx): Unhandled type\n", error
,type
);
54 SetLastError( error
);
58 /******************************************************************************
59 * GetProcessWindowStation [USER32.@] Returns handle of window station
62 * Docs say the return value is HWINSTA
65 * Success: Handle to window station associated with calling process
68 HWINSTA WINAPI
GetProcessWindowStation(void)
70 FIXME("(void): stub\n");
75 /******************************************************************************
76 * GetThreadDesktop [USER32.@] Returns handle to desktop
79 * Docs say the return value is HDESK
82 * dwThreadId [I] Thread identifier
85 * Success: Handle to desktop associated with specified thread
88 DWORD WINAPI
GetThreadDesktop( DWORD dwThreadId
)
90 FIXME("(%lx): stub\n",dwThreadId
);
95 /******************************************************************************
96 * SetDebugErrorLevel [USER32.@]
97 * Sets the minimum error level for generating debugging events
100 * dwLevel [I] Debugging error level
102 VOID WINAPI
SetDebugErrorLevel( DWORD dwLevel
)
104 FIXME("(%ld): stub\n", dwLevel
);
108 /******************************************************************************
109 * GetProcessDefaultLayout [USER32.@]
111 * Gets the default layout for parentless windows.
112 * Right now, just returns 0 (left-to-right).
121 BOOL WINAPI
GetProcessDefaultLayout( DWORD
*pdwDefaultLayout
)
123 if ( !pdwDefaultLayout
) {
124 SetLastError( ERROR_INVALID_PARAMETER
);
127 FIXME( "( %p ): No BiDi\n", pdwDefaultLayout
);
128 *pdwDefaultLayout
= 0;
133 /******************************************************************************
134 * SetProcessDefaultLayout [USER32.@]
136 * Sets the default layout for parentless windows.
137 * Right now, only accepts 0 (left-to-right).
146 BOOL WINAPI
SetProcessDefaultLayout( DWORD dwDefaultLayout
)
148 if ( dwDefaultLayout
== 0 )
150 FIXME( "( %08lx ): No BiDi\n", dwDefaultLayout
);
151 SetLastError( ERROR_CALL_NOT_IMPLEMENTED
);
156 /******************************************************************************
157 * OpenDesktopA [USER32.@]
160 * Return type should be HDESK
162 * Not supported on Win9x - returns NULL and calls SetLastError.
164 HANDLE WINAPI
OpenDesktopA( LPCSTR lpszDesktop
, DWORD dwFlags
,
165 BOOL fInherit
, DWORD dwDesiredAccess
)
167 FIXME("(%s,%lx,%i,%lx): stub\n",debugstr_a(lpszDesktop
),dwFlags
,
168 fInherit
,dwDesiredAccess
);
170 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
175 /******************************************************************************
176 * SetUserObjectInformationA (USER32.@)
178 BOOL WINAPI
SetUserObjectInformationA( HANDLE hObj
, INT nIndex
,
179 LPVOID pvInfo
, DWORD nLength
)
181 FIXME("(%x,%d,%p,%lx): stub\n",hObj
,nIndex
,pvInfo
,nLength
);
185 /******************************************************************************
186 * SetThreadDesktop (USER32.@)
188 BOOL WINAPI
SetThreadDesktop( HANDLE hDesktop
)
190 FIXME("(%x): stub\n",hDesktop
);
195 /***********************************************************************
196 * RegisterShellHookWindow [USER32.@]
198 HRESULT WINAPI
RegisterShellHookWindow ( DWORD u
)
200 FIXME("0x%08lx stub\n",u
);
205 /***********************************************************************
206 * DeregisterShellHookWindow [USER32.@]
208 HRESULT WINAPI
DeregisterShellHookWindow ( DWORD u
)
210 FIXME("0x%08lx stub\n",u
);
216 /***********************************************************************
217 * RegisterTasklist [USER32.@]
219 DWORD WINAPI
RegisterTasklist (DWORD x
)
221 FIXME("0x%08lx\n",x
);
226 /***********************************************************************
227 * GetAppCompatFlags (USER32.@)
229 DWORD WINAPI
GetAppCompatFlags( HTASK hTask
)
236 /***********************************************************************
237 * USER_489 (USER.489)
239 LONG WINAPI
stub_USER_489(void) { FIXME("stub\n"); return 0; }
241 /***********************************************************************
242 * USER_490 (USER.490)
244 LONG WINAPI
stub_USER_490(void) { FIXME("stub\n"); return 0; }
246 /***********************************************************************
247 * USER_492 (USER.492)
249 LONG WINAPI
stub_USER_492(void) { FIXME("stub\n"); return 0; }
251 /***********************************************************************
252 * USER_496 (USER.496)
254 LONG WINAPI
stub_USER_496(void) { FIXME("stub\n"); return 0; }