FullTrustProcessLauncher 클래스

정의

동일한 애플리케이션 패키지의 유니버설 Windows 앱 구성 요소에서 애플리케이션의 완전 신뢰 Win32 구성 요소를 활성화합니다.

public ref class FullTrustProcessLauncher abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.FullTrustAppContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FullTrustProcessLauncher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.FullTrustAppContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class FullTrustProcessLauncher
Public Class FullTrustProcessLauncher
상속
Object Platform::Object IInspectable FullTrustProcessLauncher
특성

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.ApplicationModel.FullTrustAppContract (v1.0에서 도입되었습니다.)
앱 기능
runFullTrust

설명

이 클래스의 메서드는 runFullTrust 기능이 있는 패키지에서만 호출할 수 있습니다. 앱 기능 선언을 참조하세요.

이 클래스를 사용하려면 솔루션에 Windows 애플리케이션 패키징 프로젝트를 추가하는 것이 좋습니다(자세한 정보). 그런 다음, 해당 프로젝트의 패키지 매니페스트에서 확장을 추가합니다 windows.fullTrustProcess .

예를 들면 다음과 같습니다.

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
         xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
         xmlns:rescap=
"http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
         xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">
  ...
  <Capabilities>
    <rescap:Capability Name="runFullTrust"/>
  </Capabilities>
  <Applications>
    …
    <Application>
      …
      <Extensions>
        <desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe">
          <desktop:FullTrustProcess>
            <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/>
            <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/>
          </desktop:FullTrustProcess>
        </desktop:Extension>
      </Extensions>
    </Application>
  </Applications>
</Package>

메서드

LaunchFullTrustProcessForAppAsync(String)

지정된 애플리케이션 ID에 대한 완전 신뢰 프로세스를 시작합니다.

LaunchFullTrustProcessForAppAsync(String, String)

매개 변수를 사용하여 지정된 애플리케이션 ID에 대한 완전 신뢰 프로세스를 시작합니다.

LaunchFullTrustProcessForAppWithArgumentsAsync(String, String)

지정된 명령줄 매개 변수를 사용하여 지정된 애플리케이션 ID에 대한 완전 신뢰 프로세스를 시작합니다.

LaunchFullTrustProcessForCurrentAppAsync()

현재 애플리케이션 ID에 대한 완전 신뢰 프로세스를 시작합니다.

LaunchFullTrustProcessForCurrentAppAsync(String)

매개 변수를 사용하여 현재 애플리케이션 ID에 대한 완전 신뢰 프로세스를 시작합니다.

LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(String)

지정된 명령줄 매개 변수를 사용하여 완전 신뢰 프로세스를 시작합니다.

적용 대상