IPrintDocumentPackageTarget::GetPackageTarget method
Retrieves the pointer to the specific document package target, which allows the client to add a document with the given target type. Clients can call this method multiple times but they always have to use the same target ID.
Syntax
HRESULT GetPackageTarget( [in] REFGUID guidTargetType, [in] REFIID riid, [out] void **ppvTarget );
Parameters
- guidTargetType [in]
-
The target type GUID obtained from GetPackageTargetTypes.
- riid [in]
-
The identifier of the interface being requested.
- ppvTarget [out]
-
The requested document target interface. The returned pointer is a pointer to an IXpsDocumentPackageTarget interface.
Return value
If the GetPackageTarget method completes successfully, it returns an S_OK. Otherwise it returns the appropriate HRESULT error code.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
See also