Converted to the new debugging interface (done with the help of the
[wine] / dlls / ntdll / sync.c
1 /*
2  *      Process synchronisation
3  */
4
5 #include <stdlib.h>
6 #include <string.h>
7 #include <time.h>
8 #include "debugstr.h"
9 #include "debug.h"
10
11 #include "ntddk.h"
12
13 DEFAULT_DEBUG_CHANNEL(ntdll)
14
15 /*
16  *      Semaphore
17  */
18
19 /******************************************************************************
20  *  NtCreateSemaphore   [NTDLL] 
21  */
22 NTSTATUS WINAPI NtCreateSemaphore(
23         OUT PHANDLE SemaphoreHandle,
24         IN ACCESS_MASK DesiredAccess,
25         IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
26         IN ULONG InitialCount,
27         IN ULONG MaximumCount) 
28 {
29         FIXME(ntdll,"(%p,0x%08lx,%p(%s),0x%08lx,0x%08lx) stub!\n",
30         SemaphoreHandle, DesiredAccess, ObjectAttributes, 
31         ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
32         InitialCount, MaximumCount);
33         return 0;
34 }
35
36 /******************************************************************************
37  *  NtOpenSemaphore     [NTDLL] 
38  */
39 NTSTATUS WINAPI NtOpenSemaphore(
40         IN HANDLE SemaphoreHandle,
41         IN ACCESS_MASK DesiredAcces,
42         IN POBJECT_ATTRIBUTES ObjectAttributes)
43 {
44         FIXME(ntdll,"(0x%08x,0x%08lx,%p(%s)) stub!\n",
45         SemaphoreHandle, DesiredAcces, ObjectAttributes,
46         ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
47         return 0;
48 }
49
50 /******************************************************************************
51  *  NtQuerySemaphore    [NTDLL] 
52  */
53 NTSTATUS WINAPI NtQuerySemaphore(
54         HANDLE SemaphoreHandle,
55         PVOID SemaphoreInformationClass,
56         OUT PVOID SemaphoreInformation,
57         ULONG Length,
58         PULONG ReturnLength) 
59 {
60         FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
61         SemaphoreHandle, SemaphoreInformationClass, SemaphoreInformation, Length, ReturnLength);
62         return 0;
63 }
64 /******************************************************************************
65  *  NtReleaseSemaphore  [NTDLL] 
66  */
67 NTSTATUS WINAPI NtReleaseSemaphore(
68         IN HANDLE SemaphoreHandle,
69         IN ULONG ReleaseCount,
70         IN PULONG PreviousCount)
71 {
72         FIXME(ntdll,"(0x%08x,0x%08lx,%p,) stub!\n",
73         SemaphoreHandle, ReleaseCount, PreviousCount);
74         return 0;
75 }
76
77 /*
78  *      Event
79  */
80  
81 /**************************************************************************
82  *              NtCreateEvent                           [NTDLL.71]
83  */
84 NTSTATUS WINAPI NtCreateEvent(
85         OUT PHANDLE EventHandle,
86         IN ACCESS_MASK DesiredAccess,
87         IN POBJECT_ATTRIBUTES ObjectAttributes,
88         IN BOOLEAN ManualReset,
89         IN BOOLEAN InitialState)
90 {
91         FIXME(ntdll,"(%p,0x%08lx,%p(%s),%08x,%08x): empty stub\n",
92         EventHandle,DesiredAccess,ObjectAttributes,
93         ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
94         ManualReset,InitialState);
95         return 0;
96 }
97
98 /******************************************************************************
99  *  NtOpenEvent         [NTDLL] 
100  */
101 NTSTATUS WINAPI NtOpenEvent(
102         OUT PHANDLE EventHandle,
103         IN ACCESS_MASK DesiredAccess,
104         IN POBJECT_ATTRIBUTES ObjectAttributes)
105 {
106         FIXME(ntdll,"(%p,0x%08lx,%p(%s)),stub!\n",
107         EventHandle,DesiredAccess,ObjectAttributes,
108         ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
109         return 0;
110 }
111
112 /******************************************************************************
113  *  NtSetEvent          [NTDLL] 
114  */
115 NTSTATUS WINAPI NtSetEvent(
116         IN HANDLE EventHandle,
117         PULONG NumberOfThreadsReleased)
118 {
119         FIXME(ntdll,"(0x%08x,%p)\n",
120         EventHandle, NumberOfThreadsReleased);
121         return 0;
122 }
123