Interface nsIWindowsPackageManagerType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Retrieves the campaignId, if any, a user's Microsoft Store install is associated with. These are present if the user clicked a "ms-window-store://" or "https://" link that included a "cid" query argument the very first time they installed the app. (This value appears to be cached forever, so subsequent installs will not refresh it.) If a non-empty campaign ID is found it will be assumed to be a properly formatted attribution code and have an additional "msstoresignedin" key appended to it indicate whether or not the user was signed in when they installed the application. This key will either be set to "true" or "false".

    Throw

    NS_ERROR_NOT_IMPLEMENTED if called on Windows 8 or earlier, or from a non-packaged build.

    Throw

    NS_ERROR_FAILURE for any other errors

    Returns string

  • When running within a Packaged App environment, returns the InstalledDate of the Package. If called when not running within a Packaged App environment, throws NS_ERROR_NOT_IMPLEMENTED. Any other others will cause NS_ERROR_FAILURE to be thrown.

    Returns number

Generated using TypeDoc