prntvpt: Implement PTOpenProvider.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2020-06-10 13:31:39 +08:00 committed by Alexandre Julliard
parent 645d909b28
commit 83eb1e1535
1 changed files with 7 additions and 2 deletions

View File

@ -59,8 +59,13 @@ HRESULT WINAPI PTQuerySchemaVersionSupport(PCWSTR printer, DWORD *version)
HRESULT WINAPI PTOpenProvider(PCWSTR printer, DWORD version, HPTPROVIDER *provider) HRESULT WINAPI PTOpenProvider(PCWSTR printer, DWORD version, HPTPROVIDER *provider)
{ {
FIXME("%s, %d, %p: stub\n", debugstr_w(printer), version, provider); DWORD used_version;
return E_NOTIMPL;
TRACE("%s, %d, %p\n", debugstr_w(printer), version, provider);
if (version != 1) return E_INVALIDARG;
return PTOpenProviderEx(printer, 1, 1, provider, &used_version);
} }
HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD pref_version, HPTPROVIDER *provider, DWORD *used_version) HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD pref_version, HPTPROVIDER *provider, DWORD *used_version)