Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9e65dbc3
Commit
9e65dbc3
authored
Feb 04, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Initialize pointers in struct PRINTPROVIDOR.
parent
7fdb61bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
2 deletions
+105
-2
localspl_main.c
dlls/localspl/localspl_main.c
+105
-2
No files found.
dlls/localspl/localspl_main.c
View file @
9e65dbc3
/*
* Implementation of the Local Printmonitor
*
* Copyright 2006 Detlef Riekenberg
* Copyright 2006
-2008
Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -35,8 +35,110 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
localspl
);
/* ############################### */
HINSTANCE
LOCALSPL_hInstance
=
NULL
;
static
const
PRINTPROVIDOR
*
pp
=
NULL
;
/*****************************************************
* get_backend [internal]
*/
static
const
PRINTPROVIDOR
*
get_backend
(
void
)
{
static
const
PRINTPROVIDOR
backend
=
{
NULL
,
/* fpOpenPrinter */
NULL
,
/* fpSetJob */
NULL
,
/* fpGetJob */
NULL
,
/* fpEnumJobs */
NULL
,
/* fpAddPrinter */
NULL
,
/* fpDeletePrinter */
NULL
,
/* fpSetPrinter */
NULL
,
/* fpGetPrinter */
NULL
,
/* fpEnumPrinters */
NULL
,
/* fpAddPrinterDriver */
NULL
,
/* fpEnumPrinterDrivers */
NULL
,
/* fpGetPrinterDriver */
NULL
,
/* fpGetPrinterDriverDirectory */
NULL
,
/* fpDeletePrinterDriver */
NULL
,
/* fpAddPrintProcessor */
NULL
,
/* fpEnumPrintProcessors */
NULL
,
/* fpGetPrintProcessorDirectory */
NULL
,
/* fpDeletePrintProcessor */
NULL
,
/* fpEnumPrintProcessorDatatypes */
NULL
,
/* fpStartDocPrinter */
NULL
,
/* fpStartPagePrinter */
NULL
,
/* fpWritePrinter */
NULL
,
/* fpEndPagePrinter */
NULL
,
/* fpAbortPrinter */
NULL
,
/* fpReadPrinter */
NULL
,
/* fpEndDocPrinter */
NULL
,
/* fpAddJob */
NULL
,
/* fpScheduleJob */
NULL
,
/* fpGetPrinterData */
NULL
,
/* fpSetPrinterData */
NULL
,
/* fpWaitForPrinterChange */
NULL
,
/* fpClosePrinter */
NULL
,
/* fpAddForm */
NULL
,
/* fpDeleteForm */
NULL
,
/* fpGetForm */
NULL
,
/* fpSetForm */
NULL
,
/* fpEnumForms */
NULL
,
/* fpEnumMonitors */
NULL
,
/* fpEnumPorts */
NULL
,
/* fpAddPort */
NULL
,
/* fpConfigurePort */
NULL
,
/* fpDeletePort */
NULL
,
/* fpCreatePrinterIC */
NULL
,
/* fpPlayGdiScriptOnPrinterIC */
NULL
,
/* fpDeletePrinterIC */
NULL
,
/* fpAddPrinterConnection */
NULL
,
/* fpDeletePrinterConnection */
NULL
,
/* fpPrinterMessageBox */
NULL
,
/* fpAddMonitor */
NULL
,
/* fpDeleteMonitor */
NULL
,
/* fpResetPrinter */
NULL
,
/* fpGetPrinterDriverEx */
NULL
,
/* fpFindFirstPrinterChangeNotification */
NULL
,
/* fpFindClosePrinterChangeNotification */
NULL
,
/* fpAddPortEx */
NULL
,
/* fpShutDown */
NULL
,
/* fpRefreshPrinterChangeNotification */
NULL
,
/* fpOpenPrinterEx */
NULL
,
/* fpAddPrinterEx */
NULL
,
/* fpSetPort */
NULL
,
/* fpEnumPrinterData */
NULL
,
/* fpDeletePrinterData */
NULL
,
/* fpClusterSplOpen */
NULL
,
/* fpClusterSplClose */
NULL
,
/* fpClusterSplIsAlive */
NULL
,
/* fpSetPrinterDataEx */
NULL
,
/* fpGetPrinterDataEx */
NULL
,
/* fpEnumPrinterDataEx */
NULL
,
/* fpEnumPrinterKey */
NULL
,
/* fpDeletePrinterDataEx */
NULL
,
/* fpDeletePrinterKey */
NULL
,
/* fpSeekPrinter */
NULL
,
/* fpDeletePrinterDriverEx */
NULL
,
/* fpAddPerMachineConnection */
NULL
,
/* fpDeletePerMachineConnection */
NULL
,
/* fpEnumPerMachineConnections */
NULL
,
/* fpXcvData */
NULL
,
/* fpAddPrinterDriverEx */
NULL
,
/* fpSplReadPrinter */
NULL
,
/* fpDriverUnloadComplete */
NULL
,
/* fpGetSpoolFileInfo */
NULL
,
/* fpCommitSpoolData */
NULL
,
/* fpCloseSpoolFileHandle */
NULL
,
/* fpFlushPrinter */
NULL
,
/* fpSendRecvBidiData */
NULL
/* fpAddDriverCatalog */
};
TRACE
(
"=> %p (%u byte for %u entries)
\n
"
,
&
backend
,
sizeof
(
backend
),
sizeof
(
backend
)
/
sizeof
(
VOID
*
));
return
&
backend
;
}
/*****************************************************
* DllMain
*/
...
...
@@ -52,6 +154,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
LOCALSPL_hInstance
=
hinstDLL
;
pp
=
get_backend
();
break
;
}
return
TRUE
;
...
...
@@ -84,7 +187,7 @@ BOOL WINAPI InitializePrintProvidor(LPPRINTPROVIDOR pPrintProvidor,
{
TRACE
(
"(%p, %u, %s)
\n
"
,
pPrintProvidor
,
cbPrintProvidor
,
debugstr_w
(
pFullRegistryPath
));
ZeroMemory
(
pPrintProvidor
,
(
cbPrintProvidor
<
sizeof
(
PRINTPROVIDOR
))
?
cbPrintProvidor
:
sizeof
(
PRINTPROVIDOR
));
memcpy
(
pPrintProvidor
,
pp
,
(
cbPrintProvidor
<
sizeof
(
PRINTPROVIDOR
))
?
cbPrintProvidor
:
sizeof
(
PRINTPROVIDOR
));
return
TRUE
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment