appmodel.h header

This header is used by Packaging, deployment, and query of Windows Store apps. For more information, see:

appmodel.h contains the following programming interfaces:

Functions

 
AddPackageDependency

Resolves a previously defined PackageDependency to a specific package and adds it to the invoking process' package graph. After the dependency has been added, other code-loading methods (such as LoadLibrary and CoCreateInstance) can find the binaries in the resolved package.
AppPolicyGetClrCompat

Retrieves a value indicating the application type of a process so that you can determine whether to enable private reflection and/or make managed objects agile.
AppPolicyGetCreateFileAccess

Retrieves a value indicating whether a process has full or restricted access to the IO devices (file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, and pipe).
AppPolicyGetLifecycleManagement

Retrieves a value indicating whether a process can be suspended/resumed by the Process Lifecycle Manager (PLM).
AppPolicyGetMediaFoundationCodecLoading

Retrieves a value indicating whether a process’s policy allows it to load non-Windows (third-party) plugins. You can use the value to decide whether or not to allow non-Windows (third-party) plugins.
AppPolicyGetProcessTerminationMethod

Retrieves the method used to end a process.
AppPolicyGetShowDeveloperDiagnostic

Retrieves the method used for a process to surface developer information, such as asserts, to the user.
AppPolicyGetThreadInitializationType

Retrieves the kind of initialization that should be automatically performed for a process when beginthread[ex] creates a thread.
AppPolicyGetWindowingModel

Retrieves a value indicating whether a process uses a CoreWindow-based, or a HWND-based, windowing model. You can use the value to decide how to register for window state change notifications (size changed, visibility changed, etc.).
ClosePackageInfo

Closes a reference to the specified package information.
DeletePackageDependency

Deletes the install-time reference for the framework package dependency you created earlier by using the TryCreatePackageDependency method. This method informs the OS that it is safe to remove the framework package if no other apps have a dependency on it.
FindPackagesByPackageFamily

Finds the packages with the specified family name for the current user.
FormatApplicationUserModelId

Constructs an application user model ID from the package family name and the package relative application ID (PRAID).
GetApplicationUserModelId

Gets the application user model ID for the specified process.
GetApplicationUserModelIdFromToken

Gets the application user model ID for the specified token.
GetCurrentApplicationUserModelId

Gets the application user model ID for the current process.
GetCurrentPackageFamilyName

Gets the package family name for the calling process.
GetCurrentPackageFullName

Gets the package full name for the calling process.
GetCurrentPackageId

Gets the package identifier (ID) for the calling process.
GetCurrentPackageInfo

Gets the package information for the calling process. (GetCurrentPackageInfo)
GetCurrentPackageInfo2

Gets the package information for the calling process. (GetCurrentPackageInfo2)
GetCurrentPackagePath

Gets the package path for the calling process. (GetCurrentPackagePath)
GetCurrentPackagePath2

Gets the package path for the calling process. (GetCurrentPackagePath2)
GetIdForPackageDependencyContext

Returns the package dependency for the specified context handle.
GetPackageApplicationIds

Gets the IDs of apps in the specified package.
GetPackageFamilyName

Gets the package family name for the specified process.
GetPackageFamilyNameFromToken

Gets the package family name for the specified token.
GetPackageFullName

Gets the package full name for the specified process.
GetPackageFullNameFromToken

Gets the package full name for the specified token.
GetPackageId

Gets the package identifier (ID) for the specified process.
GetPackageInfo

Gets the package information for the specified package. (GetPackageInfo)
GetPackageInfo2

Gets the package information for the specified package. (GetPackageInfo2)
GetPackagePath

Gets the path for the specified package.
GetPackagePathByFullName

Gets the path of the specified package. (GetPackagePathByFullName)
GetPackagePathByFullName2

Gets the path of the specified package. (GetPackagePathByFullName2)
GetPackagesByPackageFamily

Gets the packages with the specified family name for the current user.
GetResolvedPackageFullNameForPackageDependency

Returns the package full name that would be used if the package dependency were to be resolved. This function does not add the package to the process graph.
GetStagedPackageOrigin

Gets the origin of the specified package.
GetStagedPackagePathByFullName

Gets the path of the specified staged package. (GetStagedPackagePathByFullName)
GetStagedPackagePathByFullName2

Gets the path of the specified staged package. (GetStagedPackagePathByFullName2)
OpenPackageInfoByFullName

Opens the package information of the specified package.
PackageFamilyNameFromFullName

Gets the package family name for the specified package full name.
PackageFamilyNameFromId

Gets the package family name for the specified package identifier.
PackageFullNameFromId

Gets the package full name for the specified package identifier (ID).
PackageIdFromFullName

Gets the package identifier (ID) for the specified package full name.
PackageNameAndPublisherIdFromFamilyName

Gets the package name and publisher identifier (ID) for the specified package family name.
ParseApplicationUserModelId

Deconstructs an application user model ID to its package family name and package relative application ID (PRAID).
RemovePackageDependency

Removes a resolved package dependency from the current process' package graph (that is, a run-time reference for a framework package dependency that was added by using the AddPackageDependency function).
TryCreatePackageDependency

Creates an install-time reference for a framework package dependency for the current app, using the specified package family name, minimum version, and additional criteria.

Structures

 
PACKAGE_ID

Represents package identification information, such as name, version, and publisher.
PACKAGE_INFO

Represents package identification information that includes the package identifier, full name, and install location.
PACKAGE_VERSION

Represents the package version information.

Enumerations

 
AddPackageDependencyOptions

Defines options that can be applied when adding a package dependency.
AppPolicyClrCompat

The AppPolicyClrCompat enumeration indicates the application type of a process so that you can determine whether to enable private reflection and/or make managed objects agile.
AppPolicyCreateFileAccess

The AppPolicyCreateFileAccess enumeration indicates whether a process has full or restricted access to the IO devices (file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, and pipe).
AppPolicyLifecycleManagement

The AppPolicyLifecycleManagement enumeration indicates whether a process is lifecycle-managed or not.
AppPolicyMediaFoundationCodecLoading

The AppPolicyMediaFoundationCodecLoading enumeration indicates whether a process’s policy allows it to load non-Windows (third-party) plugins.
AppPolicyProcessTerminationMethod

The AppPolicyProcessTerminationMethod enumeration indicates the method used to end a process.
AppPolicyShowDeveloperDiagnostic

The AppPolicyShowDeveloperDiagnostic enumeration indicates the method used for a process to surface developer information, such as asserts, to the user.
AppPolicyThreadInitializationType

The AppPolicyThreadInitializationType enumeration indicates the kind of initialization that should be automatically performed for a process when beginthread[ex] creates a thread.
AppPolicyWindowingModel

The AppPolicyWindowingModel enumeration indicates whether a process uses a CoreWindow-based, or a HWND-based, windowing model.
CreatePackageDependencyOptions

Defines options that can be applied when creating a package dependency by using the TryCreatePackageDependency function.
PackageDependencyLifetimeKind

Specifies values that indicate the type of artifact that is used to define the lifetime of a package dependency.
PackageDependencyProcessorArchitectures

Defines the processor architectures for a framework package dependency that you create by using the TryCreatePackageDependency function.
PackageOrigin

Specifies the origin of a package.
PackagePathType

Indicates the type of package folder to retrieve.