Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |