BindPTProviderThunk function
[This function is not supported and might be disabled or deleted in future versions of Windows. PTOpenProviderEx provides equivalent functionality and should be used instead.]
Opens an instance of a print ticket provider.
HRESULT BindPTProviderThunk(
_In_ LPTSTR pszPrinterName,
_In_ INT maxVersion,
_In_ INT prefVersion,
_Out_ HPTPROVIDER *phProvider,
_Out_ INT *usedVersion
);
-
pszPrinterName [in]
-
The full name of a print queue.
-
maxVersion [in]
-
The latest version of the Print Schema that the caller supports.
-
prefVersion [in]
-
The version of the Print Schema requested by the caller.
-
phProvider [out]
-
A pointer to a handle to the print ticket provider.
-
usedVersion [out]
-
The version of the Print Schema that the print ticket provider will use.
If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code. For more information about COM error codes, see Error Handling.
Before calling this function, the calling thread must initialize COM by calling CoInitializeEx.
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
DLL |
|