Dynamic Dependency API
This API is designed to be used by unpackaged desktop apps to load framework packages other than the Windows App SDK framework package. After the specified framework package is loaded by an unpackaged desktop app, the app can call APIs provided by the framework package.
To use the Dynamic Dependency API, you need this header:
For programming guidance for this technology, see Use the dynamic dependency API to reference MSIX packages at run time.
Enumerations
MddAddPackageDependencyOptions Defines options that can be applied when adding a run-time reference to a framework package by using the MddAddPackageDependency function. |
MddCreatePackageDependencyOptions Defines options that can be applied when creating a package dependency by using the MddTryCreatePackageDependency function. |
MddPackageDependencyLifetimeKind Specifies values that indicate the type of artifact that is used to define the lifetime of a package dependency. |
MddPackageDependencyProcessorArchitectures Defines the processor architectures for a framework package dependency that you create by using the MddTryCreatePackageDependency function. |
Functions
MddAddPackageDependency Adds a run-time reference for the framework package dependency you created earlier by using the MddTryCreatePackageDependency method, with the specified options. After this method successfully returns, your app can activate types and use content from the framework package. |
MddDeletePackageDependency Deletes the install-time reference for the framework package dependency you created earlier by using the MddTryCreatePackageDependency method. This method informs the OS that it is safe to remove the framework package if no other apps have a dependency on it. |
MddGetGenerationId Returns the package graph's current generation ID. |
MddGetIdForPackageDependencyContext Returns the package dependency for the specified context handle. |
MddGetResolvedPackageFullNameForPackageDependency 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 invoking process' package graph. |
MddRemovePackageDependency 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 MddAddPackageDependency function). |
MddTryCreatePackageDependency 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. |