ReactOS
0.4.16-dev-1059-gb1cf981
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
init.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Print Spooler Service
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Various initialization functions
5
* COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org)
6
*/
7
8
#include "
precomp.h
"
9
10
DWORD
11
_RpcSpoolerInit
(
VOID
)
12
{
13
DWORD
dwErrorCode;
14
15
// Call SpoolerInit in the security context of the client.
16
// This delay-loads spoolss.dll in the user context and all further calls to functions in spoolss.dll will be done in the user context as well.
17
dwErrorCode =
RpcImpersonateClient
(
NULL
);
18
if
(dwErrorCode !=
ERROR_SUCCESS
)
19
{
20
ERR
(
"RpcImpersonateClient failed with error %lu!\n"
, dwErrorCode);
21
return
dwErrorCode;
22
}
23
24
if
(!
SpoolerInit
())
25
dwErrorCode =
GetLastError
();
26
27
RpcRevertToSelf
();
28
return
dwErrorCode;
29
}
ERR
#define ERR(fmt,...)
Definition:
precomp.h:57
ERROR_SUCCESS
#define ERROR_SUCCESS
Definition:
deptool.c:10
NULL
#define NULL
Definition:
types.h:112
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
RpcRevertToSelf
RPC_STATUS WINAPI RpcRevertToSelf(void)
Definition:
rpc_binding.c:1463
RpcImpersonateClient
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition:
rpc_binding.c:1056
SpoolerInit
BOOL WINAPI SpoolerInit(VOID)
Definition:
main.c:248
_RpcSpoolerInit
DWORD _RpcSpoolerInit(VOID)
Definition:
init.c:11
precomp.h
GetLastError
DWORD WINAPI GetLastError(void)
Definition:
except.c:1042
win32ss
printing
base
spoolsv
init.c
Generated on Wed Apr 30 2025 06:18:13 for ReactOS by
1.9.6