Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
a2b70095
Commit
a2b70095
authored
17 years ago
by
Detlef Riekenberg
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
spoolss: Implement SplInitializeWinSpoolDrv.
parent
3e6307f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/spoolss/spoolss.spec
+1
-1
1 addition, 1 deletion
dlls/spoolss/spoolss.spec
dlls/spoolss/spoolss_main.c
+48
-0
48 additions, 0 deletions
dlls/spoolss/spoolss_main.c
with
49 additions
and
1 deletion
dlls/spoolss/spoolss.spec
+
1
−
1
View file @
a2b70095
...
...
@@ -121,7 +121,7 @@
@ stub SplCommitSpoolData
@ stub SplDriverUnloadComplete
@ stub SplGetSpoolFileInfo
@ st
ub
SplInitializeWinSpoolDrv
@ st
dcall
SplInitializeWinSpoolDrv
(ptr)
@ stub SplIsUpgrade
@ stub SplProcessPnPEvent
@ stub SplReadPrinter
...
...
This diff is collapsed.
Click to expand it.
dlls/spoolss/spoolss_main.c
+
48
−
0
View file @
a2b70095
...
...
@@ -27,6 +27,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
spoolss
);
/* ################################ */
static
HMODULE
hwinspool
;
static
const
WCHAR
winspooldrvW
[]
=
{
'w'
,
'i'
,
'n'
,
's'
,
'p'
,
'o'
,
'o'
,
'l'
,
'.'
,
'd'
,
'r'
,
'v'
,
0
};
/******************************************************************
*
...
...
@@ -161,3 +165,47 @@ HANDLE WINAPI RevertToPrinterSelf(void)
FIXME
(
"() stub
\n
"
);
return
NULL
;
}
/******************************************************************
* SplInitializeWinSpoolDrv [SPOOLSS.@]
*
* Dynamic load "winspool.drv" and fill an array with some function-pointer
*
* PARAMS
* table [I] array of function-pointer to fill
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* NOTES
* Native "spoolss.dll" from w2k fill the table with 11 Function-Pointer.
* We implement the XP-Version (The table has only 9 Pointer)
*
*/
BOOL
WINAPI
SplInitializeWinSpoolDrv
(
LPVOID
*
table
)
{
DWORD
res
;
TRACE
(
"(%p)
\n
"
,
table
);
hwinspool
=
LoadLibraryW
(
winspooldrvW
);
if
(
!
hwinspool
)
return
FALSE
;
table
[
0
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"OpenPrinterW"
);
table
[
1
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"ClosePrinter"
);
table
[
2
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"SpoolerDevQueryPrintW"
);
table
[
3
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"SpoolerPrinterEvent"
);
table
[
4
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"DocumentPropertiesW"
);
table
[
5
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
(
LPSTR
)
212
);
/* LoadPrinterDriver */
table
[
6
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
(
LPSTR
)
213
);
/* RefCntLoadDriver */
table
[
7
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
(
LPSTR
)
214
);
/* RefCntUnloadDriver */
table
[
8
]
=
(
void
*
)
GetProcAddress
(
hwinspool
,
(
LPSTR
)
215
);
/* ForceUnloadDriver */
for
(
res
=
0
;
res
<
9
;
res
++
)
{
if
(
table
[
res
]
==
NULL
)
return
FALSE
;
}
return
TRUE
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment