Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930/* * PROJECT: ReactOS Print Spooler Service * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) * PURPOSE: Various initialization functions * COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org) */
#include "precomp.h"
DWORD_RpcSpoolerInit(VOID){ DWORD dwErrorCode;
// Call SpoolerInit in the security context of the client. // 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. dwErrorCode = RpcImpersonateClient(NULL); if (dwErrorCode != ERROR_SUCCESS) { ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode); return dwErrorCode; }
if (!SpoolerInit()) dwErrorCode = GetLastError();
RpcRevertToSelf(); return dwErrorCode;}