c2f0340a3b7b0c54588a5b0651d8e59b1e449a4c
[reactos.git] / lib / ntdll / csr / thread.c
1 /* $Id$
2  *
3  * COPYRIGHT:       See COPYING in the top level directory
4  * PROJECT:         ReactOS kernel
5  * FILE:            lib/ntdll/csr/propvar.c
6  * PURPOSE:         CSRSS threads API
7  */
8 #define NTOS_MODE_USER
9 #include <ntos.h>
10
11 #include <ntdll/csr.h>
12 #include <string.h>
13
14 #include <csrss/csrss.h>
15
16 #define NDEBUG
17 #include <ntdll/ntdll.h>
18
19 NTSTATUS STDCALL
20 CsrNewThread(VOID)
21 {
22    return (NtRegisterThreadTerminatePort(WindowsApiPort));
23 }
24
25 NTSTATUS STDCALL
26 CsrSetPriorityClass(HANDLE Process,
27                     PULONG PriorityClass)
28 {
29    /* FIXME: call csrss to get hProcess' priority */
30    *PriorityClass = CSR_PRIORITY_CLASS_NORMAL;
31
32    return (STATUS_NOT_IMPLEMENTED);
33 }
34
35 NTSTATUS
36 STDCALL
37 CsrIdentifyAlertableThread (VOID)
38 {
39   /* FIXME: notify csrss that current thread is alertable */
40 #if 0
41    CSRSS_IDENTIFY_ALERTABLE_THREAD_REPLY        Reply;
42    CSRSS_IDENTIFY_ALERTABLE_THREAD_REQUEST      Request = (PCSRSS_IDENTIFY_ALERTABLE_THREAD_REQUEST) & Reply;
43    PNT_TEB                                      Teb;
44
45    Request->UniqueThread = NtCurrentTeb()->Cid.UniqueThread;
46    /* FIXME: this is written the NT way, NOT the ROS way! */
47    return CsrClientCallServer (
48                 Request,
49                 NULL, /* use Request storage for reply */
50                 CSRSS_IDENTIFY_ALERTABLE_THREAD,
51                 sizeof (CSRSS_IDENTIFY_ALERTABLE_THREAD_REPLY)
52                 );
53 #endif
54    return (STATUS_NOT_IMPLEMENTED);
55 }
56
57 /* EOF */