IXpsOMPackageWriter::IsClosed method (xpsobjectmodel.h)
Gets the status of the IXpsOMPackageWriter interface.
HRESULT IsClosed( [out, retval] BOOL *isClosed );
[out, retval] isClosed
A pointer to a Boolean variable that receives the status of the IXpsOMPackageWriter interface.
||The package is closed and no more content can be added.|
||The package is open and content can be added.|
The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors.
||The method succeeded.|
||A severe error occurred and the contents of the XPS OM might be unrecoverable. Some components of the XPS OM might still be usable but only after they have been verified. Because the state of the XPS OM cannot be predicted after this error is returned, all components of the XPS OM should be released and discarded.|
If the IXpsOMPackageWriter interface is closed, operations on the package are not allowed.
|Minimum supported client||Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]|