GetDisplayAutoRotationPreferencesByProcessId function

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

Syntax

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

Parameters

dwProcessId

The process to get preference settings for.

pOrientation

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

fRotateScreen

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

   
Target Platform Windows
Header winuser.h
DLL Kernel.dll