Share via


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