[PATCH 2/2] prntvpt: Added PTOpenProvider() stub

Nikolay Sivov nsivov at codeweavers.com
Mon Oct 26 08:06:19 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/prntvpt/main.c       |  7 +++++++
 dlls/prntvpt/prntvpt.spec |  2 +-
 include/Makefile.in       |  1 +
 include/prntvpt.h         | 21 +++++++++++++++++++++
 4 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 include/prntvpt.h

diff --git a/dlls/prntvpt/main.c b/dlls/prntvpt/main.c
index aa01252..72b1dcf 100644
--- a/dlls/prntvpt/main.c
+++ b/dlls/prntvpt/main.c
@@ -23,6 +23,7 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "prntvpt.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(prntvpt);
@@ -48,3 +49,9 @@ HRESULT WINAPI PTQuerySchemaVersionSupport(PCWSTR printer, DWORD *version)
     FIXME("stub:%s %p\n", debugstr_w(printer), version);
     return E_NOTIMPL;
 }
+
+HRESULT WINAPI PTOpenProvider(PCWSTR printer, DWORD version, HPTPROVIDER *provider)
+{
+    FIXME("%s, %d, %p: stub\n", debugstr_w(printer), version, provider);
+    return E_NOTIMPL;
+}
diff --git a/dlls/prntvpt/prntvpt.spec b/dlls/prntvpt/prntvpt.spec
index 246443e..bf9a8ca 100644
--- a/dlls/prntvpt/prntvpt.spec
+++ b/dlls/prntvpt/prntvpt.spec
@@ -1,5 +1,5 @@
 @ stdcall PTQuerySchemaVersionSupport(wstr ptr)
-@ stub PTOpenProvider
+@ stdcall PTOpenProvider(wstr long ptr)
 @ stub PTOpenProviderEx
 @ stub PTCloseProvider
 @ stub BindPTProviderThunk
diff --git a/include/Makefile.in b/include/Makefile.in
index c5563a2..390522f 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -514,6 +514,7 @@ SRCDIR_INCLUDES = \
 	pktdef.h \
 	poppack.h \
 	powrprof.h \
+	prntvpt.h \
 	profinfo.h \
 	propkey.h \
 	propkeydef.h \
diff --git a/include/prntvpt.h b/include/prntvpt.h
new file mode 100644
index 0000000..a3942f2
--- /dev/null
+++ b/include/prntvpt.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2015 Nikolay Sivov for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+DECLARE_HANDLE(HPTPROVIDER);
+
+HRESULT WINAPI PTOpenProvider(const WCHAR *printer, DWORD version, HPTPROVIDER *provider);
-- 
2.6.1




More information about the wine-patches mailing list