Nikolay Sivov : prntvpt: Added PTOpenProvider() stub.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 27 11:06:37 CDT 2015


Module: wine
Branch: master
Commit: 577a75d76427eb367b1acdd004d76704beb3081d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=577a75d76427eb367b1acdd004d76704beb3081d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct 26 16:06:19 2015 +0300

prntvpt: Added PTOpenProvider() stub.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/prntvpt/main.c       |  7 +++++++
 dlls/prntvpt/prntvpt.spec |  2 +-
 include/Makefile.in       |  1 +
 include/prntvpt.h         | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 43 insertions(+), 1 deletion(-)

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 1d4196e..3836af2 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..55ecbbe
--- /dev/null
+++ b/include/prntvpt.h
@@ -0,0 +1,34 @@
+/*
+ * 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
+ */
+
+#ifndef _PRNPTNTV_H_
+#define _PRNPTNTV_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+DECLARE_HANDLE(HPTPROVIDER);
+
+HRESULT WINAPI PTOpenProvider(const WCHAR *printer, DWORD version, HPTPROVIDER *provider);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PRNPTNTV_H_ */




More information about the wine-cvs mailing list