GetIdForPackageDependencyContext function (appmodel.h)
Returns the package dependency for the specified context handle.
Syntax
HRESULT GetIdForPackageDependencyContext(
PACKAGEDEPENDENCY_CONTEXT packageDependencyContext,
PWSTR *packageDependencyId
);
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 11 (introduced in 10.0.22000.0) |
Header | appmodel.h |