winprint: Add stub dll.

This commit is contained in:
Piotr Caban 2022-10-26 13:12:27 +02:00 committed by Alexandre Julliard
parent f0605758e0
commit b7d7b23a61
6 changed files with 79 additions and 0 deletions

2
configure vendored
View file

@ -1472,6 +1472,7 @@ enable_winhttp
enable_wininet
enable_winmm
enable_winnls32
enable_winprint
enable_winscard
enable_winspool_drv
enable_winsta
@ -21918,6 +21919,7 @@ wine_fn_config_makefile dlls/winmm enable_winmm
wine_fn_config_makefile dlls/winmm/tests enable_tests
wine_fn_config_makefile dlls/winnls.dll16 enable_win16
wine_fn_config_makefile dlls/winnls32 enable_winnls32
wine_fn_config_makefile dlls/winprint enable_winprint
wine_fn_config_makefile dlls/winscard enable_winscard
wine_fn_config_makefile dlls/winsock.dll16 enable_win16
wine_fn_config_makefile dlls/winspool.drv enable_winspool_drv

View file

@ -3203,6 +3203,7 @@ WINE_CONFIG_MAKEFILE(dlls/winmm)
WINE_CONFIG_MAKEFILE(dlls/winmm/tests)
WINE_CONFIG_MAKEFILE(dlls/winnls.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/winnls32)
WINE_CONFIG_MAKEFILE(dlls/winprint)
WINE_CONFIG_MAKEFILE(dlls/winscard)
WINE_CONFIG_MAKEFILE(dlls/winsock.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/winspool.drv)

View file

@ -0,0 +1,4 @@
MODULE = winprint.dll
C_SRCS = \
printproc.c

64
dlls/winprint/printproc.c Normal file
View file

@ -0,0 +1,64 @@
/*
* Print processor implementation.
*
* Copyright 2022 Piotr Caban 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
*/
#include "windows.h"
#include "winspool.h"
#include "ddk/winsplp.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(winprint);
BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level,
BYTE *datatypes, DWORD size, DWORD *needed, DWORD *no)
{
FIXME("%s, %s, %ld, %p, %ld, %p, %p\n", debugstr_w(server), debugstr_w(name),
level, datatypes, size, needed, no);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data)
{
FIXME("%s, %p\n", debugstr_w(port), open_data);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return NULL;
}
BOOL WINAPI ClosePrintProcessor(HANDLE pp)
{
FIXME("%p\n", pp);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
{
FIXME("%p, %s\n", pp, debugstr_w(doc_name));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
BOOL WINAPI ControlPrintProcessor(HANDLE pp, DWORD cmd)
{
FIXME("%p, %ld\n", pp, cmd);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}

View file

@ -0,0 +1,6 @@
@ stdcall ClosePrintProcessor(ptr)
@ stdcall ControlPrintProcessor(ptr long)
@ stdcall EnumPrintProcessorDatatypesW(ptr ptr long ptr long ptr ptr)
@ stub GetPrintProcessorCapabilities
@ stdcall OpenPrintProcessor(ptr ptr)
@ stdcall PrintDocumentOnPrintProcessor(ptr ptr)

View file

@ -2149,6 +2149,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
16427,System\OLE DB,msdasql.dll
16427,System\ADO,msado15.dll
66000,3,wineps.drv
55,,winprint.dll
12,,*.sys,-
11,,*.msstyles,-
11,,*
@ -2211,6 +2212,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
16427,System\OLE DB,msdasql.dll
16427,System\ADO,msado15.dll
66000,3,wineps.drv
55,,winprint.dll
12,,*.sys
11,,*