Author: janderwald
Date: Fri Nov 14 15:03:48 2008
New Revision: 37366
URL:
http://svn.reactos.org/svn/reactos?rev=37366&view=rev
Log:
- Improve function stubs
- bug 3829
Modified:
trunk/reactos/dll/win32/winspool/stubs.c
Modified: trunk/reactos/dll/win32/winspool/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winspool/stubs.c…
==============================================================================
--- trunk/reactos/dll/win32/winspool/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/winspool/stubs.c [iso-8859-1] Fri Nov 14 15:03:48 2008
@@ -620,6 +620,8 @@
EnumFormsA(HANDLE Printer, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed,
PDWORD Returned)
{
OutputDebugStringW(L"winspool EnumFormsA stub called\n");
+ *Needed = 0;
+ *Returned = 0;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -634,6 +636,8 @@
EnumFormsW(HANDLE Printer, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed,
PDWORD Returned)
{
OutputDebugStringW(L"winspool EnumFormsW stub called\n");
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -647,6 +651,9 @@
EnumJobsA(HANDLE Printer, DWORD First, DWORD NoJobs, DWORD Level, PBYTE Buffer, DWORD
BufSize, PDWORD Needed, PDWORD Returned)
{
OutputDebugStringW(L"winspool EnumJobsA stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -661,6 +668,9 @@
EnumJobsW(HANDLE Printer, DWORD First, DWORD NoJobs, DWORD Level, PBYTE Buffer, DWORD
BufSize, PDWORD Needed, PDWORD Returned)
{
OutputDebugStringW(L"winspool EnumJobsW stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -675,6 +685,9 @@
EnumMonitorsA(LPSTR Name, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed, PDWORD
Returned)
{
OutputDebugStringW(L"winspool EnumMonitorsA stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -689,6 +702,9 @@
EnumMonitorsW(LPWSTR Name, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed,
PDWORD Returned)
{
OutputDebugStringW(L"winspool EnumMonitorsW stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -703,6 +719,9 @@
EnumPortsA(LPSTR Name, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed, PDWORD
Returned)
{
OutputDebugStringW(L"winspool EnumPortsA stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -717,6 +736,9 @@
EnumPortsW(LPWSTR Name, DWORD Level, PBYTE Buffer, DWORD BufSize, PDWORD Needed, PDWORD
Returned)
{
OutputDebugStringW(L"winspool EnumPortsW stub called\n");
+ *Needed = 0;
+ *Returned = 0;
+
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
@@ -758,6 +780,8 @@
{
OutputDebugStringW(L"winspool EnumPrinterDriversA stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -772,6 +796,8 @@
{
OutputDebugStringW(L"winspool EnumPrinterDriversW stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -786,6 +812,8 @@
{
OutputDebugStringW(L"winspool EnumPrintersA stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -800,6 +828,8 @@
{
OutputDebugStringW(L"winspool EnumPrintersW stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -814,6 +844,8 @@
{
OutputDebugStringW(L"winspool EnumPrintProcessorDatatypesA stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -828,6 +860,8 @@
{
OutputDebugStringW(L"winspool EnumPrintProcessorDatatypesW stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -842,6 +876,8 @@
{
OutputDebugStringW(L"winspool EnumPrintProcessorsA stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}
@@ -856,6 +892,8 @@
{
OutputDebugStringW(L"winspool EnumPrintProcessorsW stub called\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ *Needed = 0;
+ *Returned = 0;
return FALSE;
}