Commit fdf71277 authored by Erez Volk's avatar Erez Volk Committed by Alexandre Julliard

Stubs for Get/SetProcessDefaultLayout.

parent 9b4fcf72
...@@ -3298,6 +3298,7 @@ HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL); ...@@ -3298,6 +3298,7 @@ HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL);
HWND WINAPI GetOpenClipboardWindow(void); HWND WINAPI GetOpenClipboardWindow(void);
HWND WINAPI GetParent(HWND); HWND WINAPI GetParent(HWND);
INT WINAPI GetPriorityClipboardFormat(UINT*,INT); INT WINAPI GetPriorityClipboardFormat(UINT*,INT);
BOOL WINAPI GetProcessDefaultLayout(DWORD*);
HANDLE WINAPI GetPropA(HWND,LPCSTR); HANDLE WINAPI GetPropA(HWND,LPCSTR);
HANDLE WINAPI GetPropW(HWND,LPCWSTR); HANDLE WINAPI GetPropW(HWND,LPCWSTR);
#define GetProp WINELIB_NAME_AW(GetProp) #define GetProp WINELIB_NAME_AW(GetProp)
...@@ -3522,6 +3523,7 @@ BOOL WINAPI SetMenu(HWND,HMENU); ...@@ -3522,6 +3523,7 @@ BOOL WINAPI SetMenu(HWND,HMENU);
BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD); BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD);
BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP); BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP);
BOOL WINAPI SetMessageQueue(INT); BOOL WINAPI SetMessageQueue(INT);
BOOL WINAPI SetProcessDefaultLayout(DWORD);
HWND WINAPI SetParent(HWND,HWND); HWND WINAPI SetParent(HWND,HWND);
BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE); BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE);
BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE); BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE);
......
...@@ -631,3 +631,5 @@ init MAIN_UserInit ...@@ -631,3 +631,5 @@ init MAIN_UserInit
# win98 # win98
800 stdcall GetMenuInfo(long ptr)GetMenuInfo 800 stdcall GetMenuInfo(long ptr)GetMenuInfo
801 stdcall SetMenuInfo(long ptr)SetMenuInfo 801 stdcall SetMenuInfo(long ptr)SetMenuInfo
802 stdcall GetProcessDefaultLayout(ptr) GetProcessDefaultLayout
803 stdcall SetProcessDefaultLayout(long) SetProcessDefaultLayout
...@@ -345,3 +345,47 @@ DWORD dwNumberOfConcurrentThreads) ...@@ -345,3 +345,47 @@ DWORD dwNumberOfConcurrentThreads)
FIXME_(win32)("(%04x, %04x, %08lx, %08lx): stub.\n", hFileHandle, hExistingCompletionPort, dwCompletionKey, dwNumberOfConcurrentThreads); FIXME_(win32)("(%04x, %04x, %08lx, %08lx): stub.\n", hFileHandle, hExistingCompletionPort, dwCompletionKey, dwNumberOfConcurrentThreads);
return (HANDLE)NULL; return (HANDLE)NULL;
} }
/******************************************************************************
* GetProcessDefaultLayout [USER32.802]
*
* Gets the default layout for parentless windows.
* Right now, just returns 0 (left-to-right).
*
* RETURNS
* Success: Nonzero
* Failure: Zero
*
* BUGS
* No RTL
*/
BOOL WINAPI GetProcessDefaultLayout( DWORD *pdwDefaultLayout )
{
if ( !pdwDefaultLayout ) {
SetLastError( ERROR_INVALID_PARAMETER );
return 0;
}
*pdwDefaultLayout = 0;
return TRUE;
}
/******************************************************************************
* SetProcessDefaultLayout [USER32.803]
*
* Sets the default layout for parentless windows.
* Right now, only accepts 0 (left-to-right).
*
* RETURNS
* Success: Nonzero
* Failure: Zero
*
* BUGS
* No RTL
*/
BOOL WINAPI SetProcessDefaultLayout( DWORD dwDefaultLayout )
{
return ( dwDefaultLayout == 0 );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment