GetStagedPackageOrigin function (appmodel.h)

Gets the origin of the specified package.

Syntax

LONG GetStagedPackageOrigin(
  [in]  PCWSTR        packageFullName,
  [out] PackageOrigin *origin
);

Parameters

[in] packageFullName

Type: PCWSTR

The full name of the package.

[out] origin

Type: PackageOrigin*

A pointer to a variable that receives a PackageOrigin-typed value that indicates the origin of the package specified by packageFullName.

Return value

Type: LONG

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
ERROR_INVALID_PARAMETER
The packageFullName parameter isn't valid.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header appmodel.h
Library Kernel32.lib
DLL Kernelbase.dll