다음을 통해 공유


System.AppUserModel.RelaunchCommand

ShellExecute를 통해 실행하여 애플리케이션이 작업 표시줄에 고정되거나 애플리케이션의 점프 목록을 통해 애플리케이션의 새 instance 시작될 때 애플리케이션을 시작할 수 있는 명령을 지정합니다.

이러한 데이터의 예는 다음과 같습니다.

shell:::{ED228FDF-9EA8-4870-83B1-96B02CFE0D52}

virtualhost.exe /virtualapp:12345

notepad.exe

이 속성은 창에 명시적 애플리케이션 사용자 모델 ID(AppUserModelID)가 있는 경우에만 사용됩니다(System.AppUserModel.IDSHGetPropertyStoreForWindow를 통해 설정됨). 창에 명시적 AppUserModelID가 없으면 이 속성이 무시되고 창이 그룹화되고 소유하는 프로세스의 일부인 것처럼 고정됩니다. 명시적 AppUserModelID의 애플리케이션 및 작업 표시줄 고정에 미치는 영향에 대한 자세한 내용은 애플리케이션 사용자 모델 ID(AppUserModelIDs)를 참조하세요.

이 속성은 기본값이 아닌 다시 시작 정보를 제공하려는 애플리케이션 또는 창에서 사용됩니다.

참고

System.AppUserModel.RelaunchCommandSystem.AppUserModel.RelaunchDisplayNameResource 는 항상 함께 설정해야 합니다. 이러한 속성 중 하나가 설정되지 않은 경우 둘 다 사용되지 않습니다.

 

이 속성은 System.AppUserModel.RelaunchDisplayNameResourceSystem.AppUserModel.RelaunchIconResource 와 함께 창을 사용자에게 애플리케이션으로 시각적으로 정의하는 데 사용할 수 있습니다. 이는 단일 호스트 instance 여러 자식 애플리케이션을 실행하는 호스트 애플리케이션 시나리오에 유용합니다. 예를 들어 여러 가상화된 애플리케이션을 호스트하는 가상 머신은 가상화된 애플리케이션이 사용자에게 개별 애플리케이션으로 표시되도록 할 수 있습니다. 가상 머신은 명시적 AppUserModelID 및 적절한 다시 시작 속성을 사용하여 각 창에 레이블을 지정하여 애플리케이션으로 표시할 수 있습니다. 그러면 사용자가 작업 표시줄에 고정하고 고정된 instance "다시 시작"할 수 있습니다.

참고

System.AppUserModel.PreventPinning이 설정된 경우 이 속성은 무시됩니다. 이렇게 하면 애플리케이션이 명시적 AppUserModelID를 할당하지만 해당 창이 고정되지 않도록 하여 해당 창의 그룹화가 제어될 수 있습니다.

 

창에서 이 속성을 설정하려면 SHGetPropertyStoreForWindow 를 사용하여 창의 속성 저장소를 검색하고 검색된 IPropertyStore 개체의 메서드를 사용하여 해당 창의 System.AppUserModel.RelaunchCommand 속성을 설정합니다.

Windows 10, 버전 1703, Windows 10, 버전 1607, Windows 10, 버전 1511, Windows 10, 버전 1507, Windows 8.1, Windows 8, Windows 7

propertyDescription
   name = System.AppUserModel.RelaunchCommand
   shellPKey = PKEY_AppUserModel_RelaunchCommand
   formatID = 9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3
   propID = 2
   SearchInfo
      InInvertedIndex = false
      IsColumn = false
   typeInfo
      type = String
      IsInnate = false

설명

PKEY 값은 Propkey.h에 정의되어 있습니다.

애플리케이션 사용자 모델 ID(AppUserModelID)

System.AppUserModel.ID

propertyDescriptionList

propertyDescription

searchInfo

labelInfo

typeInfo

displayInfo

aliasInfo

stringFormat

booleanFormat

numberFormat

dateTimeFormat

enumeratedList

enum

enumRange

image

drawControl

editControl

filterControl

queryControl

relatedPropertyInfo

relatedProperty