Commit d8db5e04 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

user32: Add GetAutoRotationState/GetDisplayAutoRotationPreferences stubs.

parent 0c65c182
......@@ -2913,3 +2913,23 @@ BOOL WINAPI IsProcessDPIAware(void)
FIXME( "stub!\n");
return FALSE;
}
/**********************************************************************
* GetAutoRotationState [USER32.@]
*/
BOOL WINAPI GetAutoRotationState( AR_STATE *state )
{
FIXME("(%p): stub\n", state);
*state = AR_NOT_SUPPORTED;
return TRUE;
}
/**********************************************************************
* GetDisplayAutoRotationPreferences [USER32.@]
*/
BOOL WINAPI GetDisplayAutoRotationPreferences( ORIENTATION_PREFERENCE *orientation )
{
FIXME("(%p): stub\n", orientation);
*orientation = ORIENTATION_PREFERENCE_NONE;
return TRUE;
}
......@@ -251,6 +251,7 @@
@ stdcall GetAppCompatFlags(long)
@ stdcall GetAppCompatFlags2(long)
@ stdcall GetAsyncKeyState(long)
@ stdcall GetAutoRotationState(ptr)
@ stdcall GetCapture()
@ stdcall GetCaretBlinkTime()
@ stdcall GetCaretPos(ptr)
......@@ -282,6 +283,7 @@
@ stdcall GetDCEx(long long long)
@ stdcall GetDesktopWindow()
@ stdcall GetDialogBaseUnits()
@ stdcall GetDisplayAutoRotationPreferences(ptr)
@ stdcall GetDisplayConfigBufferSizes(long ptr ptr)
@ stdcall GetDlgCtrlID(long)
@ stdcall GetDlgItem(long long)
......
......@@ -3284,6 +3284,26 @@ typedef struct tagCHANGEFILTERSTRUCT
#define USER_DEFAULT_SCREEN_DPI 96
typedef enum tagAR_STATE {
AR_ENABLED = 0x0,
AR_DISABLED = 0x1,
AR_SUPPRESSED = 0x2,
AR_REMOTESESSION = 0x4,
AR_MULTIMON = 0x8,
AR_NOSENSOR = 0x10,
AR_NOT_SUPPORTED = 0x20,
AR_DOCKED = 0x40,
AR_LAPTOP = 0x80
} AR_STATE, *PAR_STATE;
typedef enum ORIENTATION_PREFERENCE {
ORIENTATION_PREFERENCE_NONE = 0x0,
ORIENTATION_PREFERENCE_LANDSCAPE = 0x1,
ORIENTATION_PREFERENCE_PORTRAIT = 0x2,
ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4,
ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8
} ORIENTATION_PREFERENCE;
#if defined(_WINGDI_) && !defined(NOGDI)
WINUSERAPI LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
WINUSERAPI LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
......@@ -3563,6 +3583,7 @@ WINUSERAPI BOOL WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT);
WINUSERAPI DWORD WINAPI GetAppCompatFlags(HTASK);
WINUSERAPI SHORT WINAPI GetAsyncKeyState(INT);
WINUSERAPI BOOL WINAPI GetAutoRotationState(AR_STATE*);
WINUSERAPI HWND WINAPI GetCapture(void);
WINUSERAPI UINT WINAPI GetCaretBlinkTime(void);
WINUSERAPI BOOL WINAPI GetCaretPos(LPPOINT);
......@@ -3605,6 +3626,7 @@ WINUSERAPI HDC WINAPI GetDC(HWND);
WINUSERAPI HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
WINUSERAPI HWND WINAPI GetDesktopWindow(void);
WINUSERAPI DWORD WINAPI GetDialogBaseUnits(void);
WINUSERAPI BOOL WINAPI GetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE*);
WINUSERAPI INT WINAPI GetDlgCtrlID(HWND);
WINUSERAPI HWND WINAPI GetDlgItem(HWND,INT);
WINUSERAPI UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
......
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