Author: cfinck
Date: Wed Jul 22 17:59:46 2015
New Revision: 68552
URL:
http://svn.reactos.org/svn/reactos?rev=68552&view=rev
Log:
[WINSPOOL]
Stub some functions properly to get unicows.dll to compile again.
Added:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdata.c
(with props)
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdrivers.c
(with props)
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printproviders.c
(with props)
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/CMakeLists.txt
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/monitors.c
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/ports.c
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printprocessors.c
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/winspool.spec
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/CMakeLists.txt [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/CMakeLists.txt [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -9,8 +9,11 @@
monitors.c
ports.c
precomp.h
+ printerdata.c
+ printerdrivers.c
printers.c
printprocessors.c
+ printproviders.c
${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c)
add_library(winspool SHARED
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/monitors.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/monitors.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/monitors.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -20,6 +20,20 @@
pMonitorInfo2->pDLLName = (PWSTR)((ULONG_PTR)pMonitorInfo2->pDLLName +
(ULONG_PTR)pMonitorInfo2);
pMonitorInfo2->pEnvironment =
(PWSTR)((ULONG_PTR)pMonitorInfo2->pEnvironment + (ULONG_PTR)pMonitorInfo2);
}
+}
+
+BOOL WINAPI
+AddMonitorW(PWSTR pName, DWORD Level, PBYTE pMonitors)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+DeleteMonitorW(PWSTR pName, PWSTR pEnvironment, PWSTR pMonitorName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
}
BOOL WINAPI
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/ports.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/ports.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/ports.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -20,6 +20,27 @@
pPortInfo2->pDescription = (PWSTR)((ULONG_PTR)pPortInfo2->pDescription +
(ULONG_PTR)pPortInfo2);
pPortInfo2->pMonitorName = (PWSTR)((ULONG_PTR)pPortInfo2->pMonitorName +
(ULONG_PTR)pPortInfo2);
}
+}
+
+BOOL WINAPI
+AddPortW(PWSTR pName, HWND hWnd, PWSTR pMonitorName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+ConfigurePortW(PWSTR pName, HWND hWnd, PWSTR pPortName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+DeletePortW(PWSTR pName, HWND hWnd, PWSTR pPortName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
}
BOOL WINAPI
Added:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdata.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdata.c (added)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdata.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -0,0 +1,29 @@
+/*
+ * PROJECT: ReactOS Spooler API
+ * LICENSE: GNU LGPL v2.1 or any later version as published by the Free Software
Foundation
+ * PURPOSE: Functions related to Printer Configuration Data
+ * COPYRIGHT: Copyright 2015 Colin Finck <colin(a)reactos.org>
+ */
+
+#include "precomp.h"
+
+LONG WINAPI
+AdvancedDocumentPropertiesW(HWND hWnd, HANDLE hPrinter, PWSTR pDeviceName, PDEVMODEW
pDevModeOutput, PDEVMODEW pDevModeInput)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+DWORD WINAPI
+GetPrinterDataW(HANDLE hPrinter, PWSTR pValueName, PDWORD pType, PBYTE pData, DWORD
nSize, PDWORD pcbNeeded)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+DWORD WINAPI
+SetPrinterDataW(HANDLE hPrinter, PWSTR pValueName, DWORD Type, PBYTE pData, DWORD
cbData)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
Propchange:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdata.c
------------------------------------------------------------------------------
svn:eol-style = native
Added:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdrivers.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdrivers.c (added)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdrivers.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -0,0 +1,36 @@
+/*
+ * PROJECT: ReactOS Spooler API
+ * LICENSE: GNU LGPL v2.1 or any later version as published by the Free Software
Foundation
+ * PURPOSE: Functions related to Printer Drivers
+ * COPYRIGHT: Copyright 2015 Colin Finck <colin(a)reactos.org>
+ */
+
+#include "precomp.h"
+
+BOOL WINAPI
+AddPrinterDriverW(PWSTR pName, DWORD Level, PBYTE pDriverInfo)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+DeletePrinterDriverW(PWSTR pName, PWSTR pEnvironment, PWSTR pDriverName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+EnumPrinterDriversW(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE pDriverInfo,
DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+GetPrinterDriverDirectoryW(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE
pDriverDirectory, DWORD cbBuf, PDWORD pcbNeeded)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
Propchange:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printerdrivers.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -136,6 +136,13 @@
return dwErrorCode;
}
+HANDLE WINAPI
+AddPrinterW(PWSTR pName, DWORD Level, PBYTE pPrinter)
+{
+ UNIMPLEMENTED;
+ return NULL;
+}
+
BOOL WINAPI
ClosePrinter(HANDLE hPrinter)
{
@@ -515,6 +522,20 @@
return (dwErrorCode == ERROR_SUCCESS);
}
+BOOL WINAPI
+ResetPrinterW(HANDLE hPrinter, PPRINTER_DEFAULTSW pDefault)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+SetPrinterW(HANDLE hPrinter, DWORD Level, PBYTE pPrinter, DWORD Command)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
DWORD WINAPI
StartDocPrinterW(HANDLE hPrinter, DWORD Level, PBYTE pDocInfo)
{
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printprocessors.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printprocessors.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printprocessors.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -22,8 +22,23 @@
}
BOOL WINAPI
+AddPrintProcessorW(PWSTR pName, PWSTR pEnvironment, PWSTR pPathName, PWSTR
pPrintProcessorName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+DeletePrintProcessorW(PWSTR pName, PWSTR pEnvironment, PWSTR pPrintProcessorName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
EnumPrintProcessorDatatypesA(PSTR pName, LPSTR pPrintProcessorName, DWORD Level, PBYTE
pDatatypes, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
{
+ UNIMPLEMENTED;
return FALSE;
}
Added:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printproviders.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printproviders.c (added)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printproviders.c [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -0,0 +1,22 @@
+/*
+ * PROJECT: ReactOS Spooler API
+ * LICENSE: GNU LGPL v2.1 or any later version as published by the Free Software
Foundation
+ * PURPOSE: Functions related to Print Providers
+ * COPYRIGHT: Copyright 2015 Colin Finck <colin(a)reactos.org>
+ */
+
+#include "precomp.h"
+
+BOOL WINAPI
+AddPrintProvidorW(PWSTR pName, DWORD Level, PBYTE pProviderInfo)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL WINAPI
+DeletePrintProvidorW(PWSTR pName, PWSTR pEnvironment, PWSTR pPrintProviderName)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
Propchange:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printproviders.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/winspool.spec
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/winspool.spec [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/winspool.spec [iso-8859-1]
Wed Jul 22 17:59:46 2015
@@ -12,31 +12,31 @@
111 stdcall AddJobA(long long ptr long ptr)
112 stdcall AddJobW(long long ptr long ptr)
113 stub AddMonitorA
-114 stub AddMonitorW
+114 stdcall AddMonitorW(wstr long ptr)
115 stub AddPortA
116 stub AddPortExA
117 stub AddPortExW
-118 stub AddPortW
+118 stdcall AddPortW(wstr long wstr)
119 stub AddPrintProcessorA
-120 stub AddPrintProcessorW
+120 stdcall AddPrintProcessorW(wstr wstr wstr wstr)
121 stub AddPrintProvidorA
-122 stub AddPrintProvidorW
+122 stdcall AddPrintProvidorW(wstr long ptr)
123 stub AddPrinterA
124 stub AddPrinterConnectionA
125 stub AddPrinterConnectionW
126 stub AddPrinterDriverA
127 stub AddPrinterDriverExA
128 stub AddPrinterDriverExW
-129 stub AddPrinterDriverW
-130 stub AddPrinterW
+129 stdcall AddPrinterDriverW(wstr long ptr)
+130 stdcall AddPrinterW(wstr long ptr)
131 stub AdvancedDocumentPropertiesA
-132 stub AdvancedDocumentPropertiesW
+132 stdcall AdvancedDocumentPropertiesW(long long wstr ptr ptr)
133 stub AdvancedSetupDialog
134 stdcall ClosePrinter(long)
135 stub CloseSpoolFileHandle
136 stub CommitSpoolData
137 stub ConfigurePortA
-138 stub ConfigurePortW
+138 stdcall ConfigurePortW(wstr long wstr)
139 stub ConnectToPrinterDlg
140 stub ConvertAnsiDevModeToUnicodeDevmode
141 stub ConvertUnicodeDevModeToAnsiDevmode
@@ -46,13 +46,13 @@
145 stub DeleteFormA
146 stub DeleteFormW
147 stub DeleteMonitorA
-148 stub DeleteMonitorW
+148 stdcall DeleteMonitorW(wstr wstr wstr)
149 stub DeletePortA
-150 stub DeletePortW
+150 stdcall DeletePortW(wstr long wstr)
151 stub DeletePrintProcessorA
-152 stub DeletePrintProcessorW
+152 stdcall DeletePrintProcessorW(wstr wstr wstr)
153 stub DeletePrintProvidorA
-154 stub DeletePrintProvidorW
+154 stdcall DeletePrintProvidorW(wstr wstr wstr)
155 stub DeletePrinter
156 stub DeletePrinterConnectionA
157 stub DeletePrinterConnectionW
@@ -63,7 +63,7 @@
162 stub DeletePrinterDriverA
163 stub DeletePrinterDriverExA
164 stub DeletePrinterDriverExW
-165 stub DeletePrinterDriverW
+165 stdcall DeletePrinterDriverW(wstr wstr wstr)
166 stub DeletePrinterIC
167 stub DeletePrinterKeyA
168 stub DeletePrinterKeyW
@@ -98,7 +98,7 @@
197 stub EnumPrinterDataExW
198 stub EnumPrinterDataW
199 stub EnumPrinterDriversA
-200 stub EnumPrinterDriversW
+200 stdcall EnumPrinterDriversW(wstr wstr long ptr long ptr ptr)
201 stdcall GetDefaultPrinterA(ptr ptr)
202 stub SetDefaultPrinterA
203 stdcall GetDefaultPrinterW(ptr ptr)
@@ -150,10 +150,10 @@
249 stub GetPrinterDataA
250 stub GetPrinterDataExA
251 stub GetPrinterDataExW
-252 stub GetPrinterDataW
+252 stdcall GetPrinterDataW(long wstr ptr ptr long ptr)
253 stdcall GetPrinterDriverA(long str long ptr long ptr)
254 stub GetPrinterDriverDirectoryA
-255 stub GetPrinterDriverDirectoryW
+255 stdcall GetPrinterDriverDirectoryW(wstr wstr long ptr long ptr)
256 stdcall GetPrinterDriverW(long wstr long ptr long ptr)
257 stdcall GetPrinterW(long long ptr long ptr)
258 stub GetSpoolFileHandle
@@ -170,7 +170,7 @@
269 stub QuerySpoolMode
270 stdcall ReadPrinter(long ptr long ptr)
271 stub ResetPrinterA
-272 stub ResetPrinterW
+272 stdcall ResetPrinterW(long ptr)
273 stdcall ScheduleJob(long long)
274 stub SeekPrinter
275 stub SetAllocFailCount
@@ -184,8 +184,8 @@
283 stub SetPrinterDataA
284 stub SetPrinterDataExA
285 stub SetPrinterDataExW
-286 stub SetPrinterDataW
-287 stub SetPrinterW
+286 stdcall SetPrinterDataW(long wstr long ptr long)
+287 stdcall SetPrinterW(long long ptr long)
288 stub SplDriverUnloadComplete
289 stub SpoolerDevQueryPrintW
290 stdcall SpoolerInit()