Conform to the new CSR_PROCESS and CSR_THREAD.
[reactos.git] / reactos / subsys / csr / csrsrv / thread.c
1 /* $Id$
2 *
3 * subsys/csr/csrsrv/thread.c - CSR server - thread management
4 *
5 * ReactOS Operating System
6 *
7 * --------------------------------------------------------------------
8 *
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This software is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this software; see the file COPYING.LIB. If not, write
21 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
22 * MA 02139, USA.
23 *
24 * --------------------------------------------------------------------
25 */
26 #include "srv.h"
27
28 //#define NDEBUG
29 #include <debug.h>
30
31 /*=====================================================================
32 * PUBLIC API
33 *===================================================================*/
34
35 NTSTATUS STDCALL CsrCreateRemoteThread ()
36 {
37 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
38
39 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
40
41 return Status;
42 }
43
44 NTSTATUS STDCALL CsrCreateThread (PCSR_PROCESS pCsrProcess, PCSR_THREAD *ppCsrThread)
45 {
46 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
47 PCSR_THREAD pCsrThread = NULL;
48 PCSR_SESSION pCsrSession = NULL;
49
50 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
51
52 if (NULL == pCsrProcess || NULL == ppCsrThread)
53 {
54 return STATUS_INVALID_PARAMETER;
55 }
56 pCsrSession = pCsrProcess->NtSession;
57 pCsrThread = RtlAllocateHeap (pCsrSession->Heap,
58 HEAP_ZERO_MEMORY,
59 sizeof (CSR_THREAD));
60 if (NULL == pCsrThread)
61 {
62 DPRINT1("CSRSRV:%s: out of memory!\n", __FUNCTION__);
63 return STATUS_NO_MEMORY;
64 }
65 pCsrThread->Process = pCsrProcess;
66 return Status;
67 }
68
69 NTSTATUS STDCALL CsrDereferenceThread (PCSR_THREAD pCsrThread)
70 {
71 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
72
73 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
74
75 return Status;
76 }
77
78 NTSTATUS STDCALL CsrDestroyThread (PCSR_THREAD pCsrThread)
79 {
80 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
81
82 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
83
84 return Status;
85 }
86
87 NTSTATUS STDCALL CsrLockThreadByClientId ()
88 {
89 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
90
91 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
92
93 return Status;
94 }
95
96 NTSTATUS STDCALL CsrReferenceThread (PCSR_THREAD pCsrThread)
97 {
98 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
99
100 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
101
102 return Status;
103 }
104
105 NTSTATUS STDCALL CsrUnlockThread (PCSR_THREAD pCsrThread)
106 {
107 NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
108
109 DPRINT("CSRSRV: %s called\n", __FUNCTION__);
110
111 return Status;
112 }
113
114 /* EOF */