IIsolatedProcessLauncher::AllowSetForegroundAccess 메서드(isolatedapplauncher.h)
원격 창에서 컨테이너에서 진행 중인 작업을 반영할 수 있습니다.
구문
HRESULT AllowSetForegroundAccess(
UINT pid
);
매개 변수
pid
프로세스 ID입니다.
반환 값
HRESULT 성공 또는 오류 코드를 반환합니다.
설명
경고
더 이상 사용되지 않는 API입니다.
예제
다음 예제에서는 AllowSetForegroundAccess
메서드를 사용하는 방법을 보여 줍니다.
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()));
요구 사항
머리글 | isolatedapplauncher.h |
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기