eae61437e3033bacf555205922db8b1f5c3249c7
[reactos.git] / reactos / subsys / smss / smss.h
1 #ifndef _SMSS_H_INCLUDED_
2 #define _SMSS_H_INCLUDED_
3
4 #define NTOS_MODE_USER
5 #include <ntos.h>
6 #include <sm/api.h>
7 #include <sm/helper.h>
8
9 #define CHILD_CSRSS 0
10 #define CHILD_WINLOGON 1
11
12 /* smss.c */
13 extern HANDLE SmSsProcessId;
14
15 /* init.c */
16 NTSTATUS InitSessionManager(VOID);
17
18 /* initheap.c */
19 extern HANDLE SmpHeap;
20 NTSTATUS SmCreateHeap(VOID);
21
22 /* initenv.c */
23 extern PWSTR SmSystemEnvironment;
24 NTSTATUS SmCreateEnvironment(VOID);
25 NTSTATUS SmSetEnvironmentVariables(VOID);
26 NTSTATUS SmUpdateEnvironment(VOID);
27
28 /* initobdir.c */
29 NTSTATUS SmCreateObjectDirectories(VOID);
30
31 /* initdosdev.c */
32 NTSTATUS SmInitDosDevices(VOID);
33
34 /* initrun.c */
35 extern HANDLE Children[2];
36 NTSTATUS SmRunBootApplications(VOID);
37
38 /* initmv.c */
39 NTSTATUS SmProcessFileRenameList(VOID);
40
41 /* initwkdll.c */
42 NTSTATUS SmLoadKnownDlls(VOID);
43
44 /* initpage.c */
45 NTSTATUS SmCreatePagingFiles(VOID);
46
47 /* initreg.c */
48 NTSTATUS SmInitializeRegistry(VOID);
49
50 /* initss.c */
51 NTSTATUS SmLoadSubsystems(VOID);
52
53 /* smapi.c */
54 #define SMAPI(n) \
55 NTSTATUS FASTCALL n (PSM_PORT_MESSAGE Request)
56 PSM_CONNECT_DATA FASTCALL SmpGetConnectData (PSM_PORT_MESSAGE);
57 NTSTATUS SmCreateApiPort(VOID);
58 VOID STDCALL SmpApiThread(PVOID);
59
60
61 /* smapiexec.c */
62 NTSTATUS STDCALL SmCreateUserProcess(LPWSTR ImagePath,
63 LPWSTR CommandLine,
64 BOOLEAN WaitForIt,
65 PLARGE_INTEGER Timeout OPTIONAL,
66 BOOLEAN TerminateIt,
67 PRTL_PROCESS_INFO ProcessInfo OPTIONAL);
68 NTSTATUS STDCALL
69 SmLookupSubsystem (IN PWSTR Name,
70 IN OUT PWSTR Data,
71 IN OUT PULONG DataLength,
72 IN OUT PULONG DataType,
73 IN BOOLEAN Expand);
74 NTSTATUS FASTCALL SmExecPgm(PSM_PORT_MESSAGE);
75
76 /* smapicomp.c */
77 NTSTATUS FASTCALL SmCompSes(PSM_PORT_MESSAGE);
78
79 /* smapiquery.c */
80 NTSTATUS FASTCALL SmQryInfo(PSM_PORT_MESSAGE);
81
82 /* client.c */
83 typedef struct _SM_CLIENT_DATA
84 {
85 USHORT SubsystemId;
86 BOOL Initialized;
87 HANDLE ServerProcess;
88 HANDLE ApiPort;
89 HANDLE ApiPortThread;
90 HANDLE SbApiPort;
91 WCHAR SbApiPortName [SM_SB_NAME_MAX_LENGTH];
92 struct _SM_CLIENT_DATA * Next;
93
94 } SM_CLIENT_DATA, *PSM_CLIENT_DATA;
95 NTSTATUS SmInitializeClientManagement(VOID);
96 NTSTATUS STDCALL SmCreateClient(PSM_PORT_MESSAGE,PSM_CLIENT_DATA*);
97 NTSTATUS STDCALL SmDestroyClient(ULONG);
98 NTSTATUS STDCALL SmCompleteClientInitialization (HANDLE hProcess);
99
100 /* debug.c */
101 extern HANDLE DbgSsApiPort;
102 extern HANDLE DbgUiApiPort;
103 NTSTATUS SmInitializeDbgSs(VOID);
104
105 /* print.c */
106 VOID STDCALL DisplayString(LPCWSTR lpwString);
107 VOID STDCALL PrintString (char* fmt, ...);
108
109 #endif /* _SMSS_H_INCLUDED_ */
110
111 /* EOF */
112