IAppVClient::GetPackagePublishedState method

Returns whether the package is configured on the machine, published to the user, and globally published.

[This API is deprecated and may unsupported or unavailable in future versions of Windows.]

Syntax

HRESULT GetPackagePublishedState(
    [in] BSTR packageID, 
    [in] BSTR packageVersionID,          
    [out] VARIANT_BOOL *configuredOnTheMachine, 
    [out] VARIANT_BOOL *publishedToUser,    
    [out] VARIANT_BOOL *userPending, 
    [out] VARIANT_BOOL *globallyPublished,
    [out] VARIANT_BOOL *globalPending, 
    [out, retval] ULONGLONG* appvret);

Parameters

packageGUID [in]

Required. The ID of the package for which state is retrieved.

packageVersionGUID [in]

Required. The package version ID.

configuredOnTheMachine [out]

If VARIANT_TRUE is returned, the specified package is configured on the machine.

publishedToUser [out]

If VARIANT_TRUE is returned, the specified package is published to the current user.

userPending [out]

If VARIANT_TRUE is returned, the specified package is pending publishing to the current user.

globallyPublished [out]

If VARIANT_TRUE is returned, the specified package is published globally.

globalPending [out]

If VARIANT_TRUE is returned, the specified package is pending publishing globally.

appvret [out]

An App-V return code.

Return value

An HRESULT.

Remarks

Requirements

Requirement Value
Header N/A

See also