IAppxManifestPackageId::ComparePublisher method (appxpackaging.h)

Compares the specified publisher with the publisher defined in the manifest.

Syntax

HRESULT ComparePublisher(
  [in]          LPCWSTR other,
  [out, retval] BOOL    *isSame
);

Parameters

[in] other

Type: LPCWSTR

The publisher name to be compared.

[out, retval] isSame

Type: BOOL*

TRUE if the specified publisher matches the package publisher; FALSE otherwise.

Return value

Type: HRESULT

If the method succeeds, it returns S_OK.

Remarks

Publisher information is specified using the Publisher attribute of the Identity element in the package manifest.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxManifestPackageId