다음을 통해 공유


XPS Digital Signature API Errors

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.

Return code/value Description
S_OK

The method succeeded.

XPS_E_INVALID_SIGNATUREBLOCK_MARKUP 0x8052038b

Encountered an error in the XML markup of the signature block while the signature markup was being read.

XPS_E_MARKUP_COMPATIBILITY_ELEMENTS 0x80520389

The XPS_SIGN_FLAGS value specified that no markup compatibility elements were expected; however, markup compatibility elements were found.

XPS_E_OBJECT_DETACHED 0x8052038a

The interface is not associated with the signature manager.

XPS_E_PACKAGE_ALREADY_OPENED 0x80520387

An XPS package has already been opened in the signature manager.

XPS_E_PACKAGE_NOT_OPENED 0x80520386

An XPS package has not yet been opened in the signature manager.

XPS_E_SIGNATUREID_DUP 0x80520388

Two or more signatures have the same ID.

XPS_E_SIGREQUESTID_DUP 0x80520385

The signature request ID is not unique within the signature block.

 

Remarks

Some XPS digital signature API methods make calls to the Packaging API. For information about the Packaging API return values, see Packaging Errors.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Xpsdigitalsignature.h

IDL

XpsDigitalSignature.idl

See also

Error Handling in COM

Packaging Errors

Cryptography Return Values