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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for