mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 00:11:35 +00:00
24a727a23b
Addendum to 43fa9548d3
69 lines
1.6 KiB
C
69 lines
1.6 KiB
C
/*
|
|
* PROJECT: ReactOS Service Host
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
* FILE: sdk/include/reactos/svc.h
|
|
* PURPOSE: Global Header for Service Host
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
*/
|
|
/* See https://www.geoffchappell.com/studies/windows/win32/services/svchost/process/globaldata.htm?tx=78 */
|
|
|
|
#ifndef __SVC_H
|
|
#define __SVC_H
|
|
|
|
#ifndef __RPC_H__
|
|
#include <rpc.h>
|
|
#endif
|
|
|
|
|
|
typedef RPC_STATUS
|
|
(CALLBACK *LPSTART_RPC_SERVER) (
|
|
_In_ RPC_WSTR PipeName,
|
|
_In_ RPC_IF_HANDLE IfSpec);
|
|
|
|
typedef RPC_STATUS
|
|
(CALLBACK *LPSTOP_RPC_SERVER) (
|
|
_In_ RPC_IF_HANDLE IfSpec);
|
|
|
|
//
|
|
// This is the callback that a hosted service can register for stop notification
|
|
//
|
|
typedef VOID
|
|
(CALLBACK *PSVCHOST_STOP_CALLBACK) (
|
|
_In_ PVOID lpParameter,
|
|
_In_ BOOLEAN TimerOrWaitFired
|
|
);
|
|
|
|
//
|
|
// Hosted Services and SvcHost Use this Structure
|
|
//
|
|
typedef struct _SVCHOST_GLOBALS
|
|
{
|
|
PVOID NullSid;
|
|
PVOID WorldSid;
|
|
PVOID LocalSid;
|
|
PVOID NetworkSid;
|
|
PVOID LocalSystemSid;
|
|
PVOID LocalServiceSid;
|
|
PVOID NetworkServiceSid;
|
|
PVOID BuiltinDomainSid;
|
|
PVOID AuthenticatedUserSid;
|
|
PVOID AnonymousLogonSid;
|
|
PVOID AliasAdminsSid;
|
|
PVOID AliasUsersSid;
|
|
PVOID AliasGuestsSid;
|
|
PVOID AliasPowerUsersSid;
|
|
PVOID AliasAccountOpsSid;
|
|
PVOID AliasSystemOpsSid;
|
|
PVOID AliasPrintOpsSid;
|
|
PVOID AliasBackupOpsSid;
|
|
PVOID RpcpStartRpcServer;
|
|
PVOID RpcpStopRpcServer;
|
|
PVOID RpcpStopRpcServerEx;
|
|
PVOID SvcNetBiosOpen;
|
|
PVOID SvcNetBiosClose;
|
|
PVOID SvcNetBiosReset;
|
|
PVOID SvcRegisterStopCallback;
|
|
} SVCHOST_GLOBALS, *PSVCHOST_GLOBALS;
|
|
|
|
#endif /* __SVC_H */
|