XPS Digital Signature API Errors

Header: xpsdigitalsignature.h

The following table lists all HRESULT values that can be returned by the methods in the XPS Digital Signature API. Note that not every method can return every return value listed in this table.

SymbolicCodeDescription
S_OKThe method succeeded.
XPS_E_INVALID_SIGNATUREBLOCK_MARKUP0x8052038bEncountered an error in the XML markup of the signature block while the signature markup was being read.
XPS_E_MARKUP_COMPATIBILITY_ELEMENTS0x80520389The XPS_SIGN_FLAGS value specified that no markup compatibility elements were expected; however, markup compatibility elements were found.
XPS_E_OBJECT_DETACHED0x8052038aThe interface is not associated with the signature manager.
XPS_E_PACKAGE_ALREADY_OPENED0x80520387An XPS package has already been opened in the signature manager.
XPS_E_PACKAGE_NOT_OPENED0x80520386An XPS package has not yet been opened in the signature manager.
XPS_E_SIGNATUREID_DUP0x80520388Two or more signatures have the same ID.
XPS_E_SIGREQUESTID_DUP0x80520385The signature request ID is not unique within the signature block.
8 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.