Skip to content

Latest commit

 

History

History
139 lines (107 loc) · 4.6 KB

nf-xpsdigitalsignature-ixpssignaturemanager-savepackagetofile.md

File metadata and controls

139 lines (107 loc) · 4.6 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:xpsdigitalsignature.IXpsSignatureManager.SavePackageToFile
IXpsSignatureManager::SavePackageToFile (xpsdigitalsignature.h)
Saves the XPS package to a file.
IXpsSignatureManager interface [XPS Documents and Packaging]
SavePackageToFile method
IXpsSignatureManager.SavePackageToFile
IXpsSignatureManager::SavePackageToFile
SavePackageToFile
SavePackageToFile method [XPS Documents and Packaging]
SavePackageToFile method [XPS Documents and Packaging]
IXpsSignatureManager interface
xps.ixpssignaturemanager_savepackagetofile
xpsdigitalsignature/IXpsSignatureManager::SavePackageToFile
xps\ixpssignaturemanager_savepackagetofile.htm
xps
954d8eb1-8680-410b-909b-da7a6572c0f3
12/05/2018
IXpsSignatureManager interface [XPS Documents and Packaging],SavePackageToFile method, IXpsSignatureManager.SavePackageToFile, IXpsSignatureManager::SavePackageToFile, SavePackageToFile, SavePackageToFile method [XPS Documents and Packaging], SavePackageToFile method [XPS Documents and Packaging],IXpsSignatureManager interface, xps.ixpssignaturemanager_savepackagetofile, xpsdigitalsignature/IXpsSignatureManager::SavePackageToFile
xpsdigitalsignature.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
XpsDigitalSignature.idl
Windows
19H1
IXpsSignatureManager::SavePackageToFile
xpsdigitalsignature/IXpsSignatureManager::SavePackageToFile
c++
APIRef
kbSyntax
COM
xpsdigitalsignature.h
IXpsSignatureManager.SavePackageToFile

IXpsSignatureManager::SavePackageToFile

-description

Saves the XPS package to a file.

-parameters

-param fileName [in]

The name of the file where the XPS package is to be created and saved.

-param securityAttributes [in]

The SECURITY_ATTRIBUTES structure, which contains two separate but related data members:

  • lpSecurityDescriptor, an optional security descriptor.
  • bInheritHandle, a Boolean value that determines whether the returned handle can be inherited by child processes.
If the lpSecurityDescriptor member of the structure is NULL, the file or device that is associated with the returned handle is assigned a default security descriptor.

For more information about this parameter, see CreateFile.

-param flagsAndAttributes [in]

The file or device attributes and flags that will be used in file creation. For more information about this parameter, see the description of the dwFlagsAndAttributes parameter in CreateFile.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For return values that are not listed in this table, see XPS Digital Signature API Errors and XPS Document Errors.

Return code Description
S_OK
The method succeeded.
E_POINTER
fileName is NULL.
XPS_E_PACKAGE_NOT_OPENED
An XPS package has not yet been opened in the signature manager.

-remarks

If this method returns an HRESULT value that is not in the list of return values for this method, the signature manager should be released and recreated.

-see-also

IXpsSignatureManager

XML Paper Specification

XPS Digital Signature API Errors

XPS Document Errors