IIsolatedProcessLauncher::AllowSetForegroundAccess method (isolatedapplauncher.h)

Allows the remote window to reflecting what is going on in the container.

Syntax

HRESULT AllowSetForegroundAccess(
  UINT pid
);

Parameters

pid

The process ID.

Return value

Returns an HRESULT success or error code.

Remarks

Warning

This is a deprecated API.

Examples

The following example shows how to use the AllowSetForegroundAccess method.

wil::com_ptr<IIsolatedProcessLauncher> isolatedProcessLauncher;

THROW_IF_FAILED(CoCreateInstance(
    CLSID_IsolatedAppLauncher,
    NULL,
    CLSCTX_LOCAL_SERVER,
    IID_PPV_ARGS(&isolatedProcessLauncher)));

THROW_IF_FAILED(isolatedProcessLauncher->AllowSetForegroundAccess(GetCurrentProcessId()));

Requirements

Requirement Value
Header isolatedapplauncher.h