다음을 통해 공유


IIsolatedProcessLauncher::IsContainerRunning 메서드(isolatedapplauncher.h)

컨테이너가 실행 중인지 일시 중단되었는지 확인합니다.

구문

HRESULT IsContainerRunning(
  BOOL *running
);

매개 변수

running

실행 중인 매개 변수는 컨테이너가 실행 중인 경우 true로 설정되고, 컨테이너가 일시 중단된 경우 false로 설정됩니다.

반환 값

HRESULT 성공 또는 오류 코드를 반환합니다.

설명

경고

더 이상 사용되지 않는 API입니다.

예제

다음 예제에서는 IsContainerRunning 메서드를 사용하는 방법을 보여 줍니다.

wil::com_ptr<IIsolatedProcessLauncher> isolatedProcessLauncher; 

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

BOOL isRunning;
THROW_IF_FAILED(isolatedProcessLauncher->IsContainerRunning(&isRunning));
LogMessage(L"Container is %s.", isRunning ? L"running" : L"suspended");

요구 사항

요구 사항
헤더 isolatedapplauncher.h