Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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
[in] guidTargetType
The target type GUID obtained from GetPackageTargetTypes.
[in] riid
The identifier of the interface being requested.
[out] ppvTarget
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | documenttarget.h |