MddGetIdForPackageDependencyContext function (msixdynamicdependency.h)
Returns the package dependency for the specified context handle.
Syntax
HRESULT MddGetIdForPackageDependencyContext(
MDD_PACKAGEDEPENDENCY_CONTEXT packageDependencyContext,
PWSTR *packageDependencyId
) noexcept;
Parameters
packageDependencyContext
Type: PACKAGEDEPENDENCY_CONTEXT
The handle of the package dependency to return.
packageDependencyId
Type: PCWSTR*
The ID of the package dependency for the specified context handle. If the package dependency cannot be resolved, the function succeeds but this parameter is nullptr on output. Use the HeapAlloc function to allocate memory for this parameter, and use HeapFree to deallocate the memory.
Return value
Return code | Description |
---|---|
E_INVALIDARG | The packageDependencyContext or packageDependencyId parameter is NULL on input. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 (with Windows App SDK 1.0 or later) |
Header | msixdynamicdependency.h |