Export (0) Print
Expand All
Expand Minimize

GetDisplayAutoRotationPreferencesByProcessId function

Retrieves the screen auto-rotation preferences for the process indicated by the dwProcessId parameter.

Syntax


BOOL WINAPI GetDisplayAutoRotationPreferencesByProcessId(
  _In_   DWORD *dwProcessId,
  _Out_  ORIENTATION_PREFERENCE *pOrientation,
  _Out_  BOOL *fRotateScreen
);

Parameters

dwProcessId [in]

The process to get preference settings for.

pOrientation [out]

Pointer to a location in memory that will receive the current orientation preference setting for the indicated process.

fRotateScreen [out]

Pointer to a location in memory that will receive a TRUE or FALSE value indicating whether the screen was rotated to comply with the process orientation preferences.

Return value

TRUE if the method succeeds, otherwise FALSE.

Applications should use GetDisplayAutoRotationPreferences to retrieve their auto-rotation preferences instead of using this API. For an example, see GetDisplayAutoRotationPreferences.

Requirements

Header

WinUser.h

DLL

Kernel.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft