AppPolicyGetWindowingModel function (appmodel.h)

Retrieves a value indicating whether a process uses a CoreWindow-based, or a HWND-based, windowing model. You can use the value to decide how to register for window state change notifications (size changed, visibility changed, etc.).

Syntax

LONG AppPolicyGetWindowingModel(
  [in]  HANDLE                  processToken,
  [out] AppPolicyWindowingModel *policy
);

Parameters

[in] processToken

A handle that identifies the access token for a process.

[out] policy

A pointer to a variable of the AppPolicyWindowingModel enumerated type. When the function returns successfully, the variable contains an enumerated constant value indicating the windowing model of the identified process.

Return value

If the function succeeds, the function returns ERROR_SUCCESS.

If no known windowing model policy was found for the process token, the function raises a STATUS_ASSERTION_FAILURE exception and returns ERROR_NOT_FOUND.

If either processToken or policy are null, the function returns ERROR_INVALID_PARAMETER.

Requirements

Requirement Value
Target Platform Windows
Header appmodel.h
Library OneCoreUap.lib
DLL Api-ms-win-appmodel-runtime-l1-1-2.dll