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:prntvpt.PTOpenProviderEx |
PTOpenProviderEx function (prntvpt.h) |
Opens an instance of a print ticket provider. (PTOpenProviderEx) |
|
gdi\ptopenproviderex.htm |
xps |
0e65170b-66f6-4238-bdde-0a0b7108a686 |
12/05/2018 |
PTOpenProviderEx, PTOpenProviderEx function [Windows GDI], _win32_PTOpenProviderEx, gdi.ptopenproviderex, prntvpt/PTOpenProviderEx |
prntvpt.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Prntvpt.lib |
Prntvpt.dll |
Windows |
19H1 |
|
|
|
|
|
|
Opens an instance of a print ticket provider.
A pointer to the full name of a print queue.
The latest version of the Print Schema that the caller supports.
The version of the Print Schema requested by the caller.
A pointer to a handle for the provider.
A pointer to the version of the Print Schema that the print ticket provider will use.
If the operation succeeds, the return value is S_OK, otherwise the HRESULT contains an error code.
For more information about COM error codes, see Error Handling.
The first version of the Print Schema was released with Windows Vista and is version 1. If the print ticket provider does not support prefVersion, PTOpenProviderEx successfully opens a handle and returns an earlier version in usedVersion.
To avoid a resource leak, phProvider must be closed with PTCloseProvider.