[REACTOS]
[reactos.git] / reactos / deprecated / csr / csrsrv / status.h
1 /*
2 * CSRSRV Status
3 */
4
5 /* Organization
6 *
7 * api.c - Handles the LPC Reply/Request Threads which wait on Sb and Csr APIs.
8 * Also in charge of creating those threads and setting up the ports.
9 * Finally, it provides external APIs for validating the API buffers
10 * and doing server-to-server API calls.
11 *
12 * init.c - Handles initialization of CSRSRV, including command-line parsing,
13 * loading the Server DLLs, creating the Session Directories, setting
14 * up the DosDevices Object Directory, and initializing each component.
15 *
16 * process.c - Handles all internal functions dealing with the CSR Process Object,
17 * including de/allocation, de/referencing, un/locking, prority, and
18 * lookups. Also handles all external APIs which touch the CSR Process Object.
19 *
20 * server.c - Handles all internal functions related to loading and managing Server
21 * DLLs, as well as the routines handling the Shared Static Memory Section.
22 * Holds the API Dispatch/Valid/Name Tables and the public CSR_SERVER API
23 * interface. Also home of the SEH handler.
24 *
25 * session.c - Handles all internal functions dealing with the CSR Session Object,
26 * including de/allocation, de/referencing, and un/locking. Holds the SB API
27 * Dispatch/Name Tables and the public CsrSv API Interface for commmunication
28 * with the Session Manager.
29 *
30 * thread.c - Handles all internal functions dealing with the CSR Thread Object,
31 * including de/allocation, de/referencing, un/locking, impersonation, and
32 * lookups. Also handles all external APIs which touch the CSR Thread Object.
33 *
34 * wait.c - Handles all internal functions dealing with the CSR Wait Object,
35 * including de/allocation, de/referencing and un/locking. Also implements
36 * the external Wait API for creating, removing and/or notifying waits.
37 */
38
39 /* Exported APIs, their location, and their status
40 * CsrAddStaticServerThread 753E679E 1 - server.c - IMPLEMENTED
41 * CsrCallServerFromServer 753E4FD9 2 - api.c - IMPLEMENTED
42 * CsrConnectToUser 753E4E48 3 - api.c - IMPLEMENTED
43 * CsrCreateProcess 753E6FD3 4 - process.c - IMPLEMENTED
44 * CsrCreateRemoteThread 753E73BD 5 - thread.c - IMPLEMENTED
45 * CsrCreateThread 753E72DA 6 - thread.c - IMPLEMENTED
46 * CsrCreateWait 753E770E 7 - wait.c - IMPLEMENTED
47 * CsrDebugProcess 753E7682 8 - process.c - IMPLEMENTED
48 * CsrDebugProcessStop 753E768A 9 - process.c - IMPLEMENTED
49 * CsrDereferenceProcess 753E6281 10 - process.c - IMPLEMENTED
50 * CsrDereferenceThread 753E6964 11 - thread.c - IMPLEMENTED
51 * CsrDereferenceWait 753E7886 12 - wait.c - IMPLEMENTED
52 * CsrDestroyProcess 753E7225 13 - process.c - IMPLEMENTED
53 * CsrDestroyThread 753E7478 14 - thread.c - IMPLEMENTED
54 * CsrExecServerThread 753E6841 15 - thread.c - IMPLEMENTED
55 * CsrGetProcessLuid 753E632F 16 - process.c - IMPLEMENTED
56 * CsrImpersonateClient 753E60F8 17 - thread.c - IMPLEMENTED
57 * CsrLockProcessByClientId 753E668F 18 - process.c - IMPLEMENTED
58 * CsrLockThreadByClientId 753E6719 19 - thread.c - IMPLEMENTED
59 * CsrMoveSatisfiedWait 753E7909 20 - wait.c - IMPLEMENTED
60 * CsrNotifyWait 753E782F 21 - wait.c - IMPLEMENTED
61 * CsrPopulateDosDevices 753E37A5 22 - init.c - IMPLEMENTED
62 * CsrQueryApiPort 753E4E42 23 - api.c - IMPLEMENTED
63 * CsrReferenceThread 753E61E5 24 - thread.c - IMPLEMENTED
64 * CsrRevertToSelf 753E615A 25 - thread.c - IMPLEMENTED
65 * CsrServerInitialization 753E3D75 26 - server.c - IMPLEMENTED
66 * CsrSetBackgroundPriority 753E5E87 27 - process.c - IMPLEMENTED
67 * CsrSetCallingSpooler 753E6425 28 - server.c - IMPLEMENTED
68 * CsrSetForegroundPriority 753E5E67 29 - process.c - IMPLEMENTED
69 * CsrShutdownProcesses 753E7547 30 - process.c - IMPLEMENTED
70 * CsrUnhandledExceptionFilter 753E3FE3 31 - server.c - IMPLEMENTED
71 * CsrUnlockProcess 753E66FD 32 - process.c - IMPLEMENTED
72 * CsrUnlockThread 753E7503 33 - thread.c - IMPLEMENTED
73 * CsrValidateMessageBuffer 753E528D 34 - api.c - IMPLEMENTED
74 * CsrValidateMessageString 753E5323 35 - api.c - UNIMPLEMENTED
75 */
76
77 /* Public CSR API Interface Status (server.c)
78 * CsrSrvClientConnect - IMPLEMENTED
79 * CsrSrvUnusedFunction - IMPLEMENTED
80 * CsrSrvIdentifyAlertableThread - IMPLEMENTED
81 * CsrSrvSetPriorityClass - IMPLEMENTED
82 */
83
84 /* Public SB API Interface Status (session.c)
85 * CsrSbCreateSession - IMPLEMENTED
86 * CsrSbForeignSessionComplete - IMPLEMENTED
87 * CsrSbTerminateSession - UNIMPLEMENTED
88 * CsrSbCreateProcess - UNIMPLEMENTED
89 */
90
91 /* What's missing:
92 *
93 * - SMSS needs to be partly re-written to match some things done here.
94 * Among other things, SmConnectToSm, SmCompleteSession and the other
95 * Sm* Exported APIs have to be properly implemented, as well as the
96 * callback calling and SM LPC APIs. [DONE!]
97 *
98 * - NTDLL needs to get the Csr* routines properly implemented. [DONE!]
99 *
100 * - KERNEL32, USER32 need to register with their servers properly.
101 * Additionally, user32 needs to have ClientThreadStartup implemented
102 * properly and do the syscall NtUserInitialize (I think) which also
103 * needs to be implemented in win32k.sys. All this should be less then
104 * 100 lines of code. [KERNEL32 50% DONE, USER32 NOT DONE]
105 *
106 * - The skeleton code for winsrv and basesrv which connects with CSR/CSRSRV
107 * needs to be written. [NOT DONE]
108 *
109 * - The kernel's LPC implementation needs to be made compatible. [DONE!]
110 */
111