Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Closes a print ticket provider handle.
Syntax
HRESULT PTCloseProvider(
[in] HPTPROVIDER hProvider
);
Parameters
[in] hProvider
A handle to the provider. This handle is returned by the PTOpenProvider or PTOpenProviderEx function.
Return value
If the operation succeeds, the return value is S_OK, otherwise the HRESULT contains an error code.
If hProvider was opened in a different thread, the HRESULT is E_INVALIDARG.
For more information about COM error codes, see Error Handling.
Remarks
A handle cannot be used after it is closed.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | prntvpt.h |
| Library | Prntvpt.lib |
| DLL | Prntvpt.dll |