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. |
|
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 |
|
|
|
|
|
|
Saves the XPS package to a file.
The name of the file where the XPS package is to be created and saved.
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.
For more information about this parameter, see CreateFile.
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.
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 |
---|---|
|
The method succeeded. |
|
fileName is NULL. |
|
An XPS package has not yet been opened in the signature manager. |
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.