mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
Following commit 24a727a23
, give a lift to the SVCHOST global header
and add & complete all the missing definitions.
- Based on https://www.geoffchappell.com/studies/windows/win32/services/svchost/process/globaldata.htm
from public debug symbols (e.g. svchost, mswsock, w32time, wscsvc...),
adjust some of our symbols' names.
- Make the header C++-compatible.
- Even if the start/stop RPC server functions return an error code whose
underlying storage type is a 32-bit long, they don't return an RPC
status error code, but an NT status. Thus, use the adequate type
instead.
- The PSVCHOST_STOP_CALLBACK is nothing but a WAITORTIMERCALLBACK function.
- Take the opportunity to fix some of these functions' SAL annotations.
- Remark: "LP" for pointers is old-fashioned Windows, avoid this in NT code.
[MSWSOCK][SECLOGON] Do the minor adjustments. Remove unnecessary function casts.
40 lines
759 B
C
40 lines
759 B
C
/*
|
|
* PROJECT: ReactOS Secondary Logon Service
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Secondary Logon service RPC server
|
|
* COPYRIGHT: Eric Kohl 2022 <eric.kohl@reactos.org>
|
|
*/
|
|
|
|
#ifndef _SECLOGON_PCH_
|
|
#define _SECLOGON_PCH_
|
|
|
|
#include <limits.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winreg.h>
|
|
#include <winsvc.h>
|
|
#include <svc.h>
|
|
#include <userenv.h>
|
|
|
|
#define NTOS_MODE_USER
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
#include <wine/debug.h>
|
|
|
|
extern HINSTANCE hDllInstance;
|
|
extern PSVCHOST_GLOBAL_DATA lpServiceGlobals;
|
|
|
|
DWORD
|
|
StartRpcServer(VOID);
|
|
|
|
DWORD
|
|
StopRpcServer(VOID);
|
|
|
|
#endif /* _SECLOGON_PCH_ */
|