大网数据广告活动
打印与设备

XPS Digital Signature API Errors (Xpsdigitalsignature.h)

· 52CE 我爱测

The following table lists all HRESULT values that can be returned by the methods in the XPS Digital Signature API.

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

Requirement Value
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

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。