Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 2.22 KB

nf-msixdynamicdependency-mddremovepackagedependency.md

File metadata and controls

74 lines (59 loc) · 2.22 KB
UID tech.root title ms.date targetos description prerelease req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:msixdynamicdependency.MddRemovePackageDependency
dynamicdependency
MddRemovePackageDependency
07/15/2021
Windows
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).
false
function
msixdynamicdependency.h
Windows 10, version 1809 (with Windows App SDK 1.0 or later)
apiref
HeaderDef
msixdynamicdependency.h
MddRemovePackageDependency
MddRemovePackageDependency
msixdynamicdependency/MddRemovePackageDependency
c++

-description

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).

-parameters

-param packageDependencyContext

Type: PACKAGEDEPENDENCY_CONTEXT

The handle of the package dependency to remove.

-returns

Type: HRESULT

If the function succeeds it returns ERROR_SUCCESS. Otherwise, the function returns an error code. The possible error codes include the following.

Return code Description
E_INVALIDARG The packageDependencyContext parameter is NULL on input.

-remarks

This function does not unload loaded resources such as DLLs. After removing a package dependency, any files loaded from the package can continue to be used. Future file resolution will fail to see the removed package dependency.

Successful calls to this method change the generation ID value returned by MddGetGenerationId.

-see-also

MddAddPackageDependency