- sorted API by groups
[wine/multimedia.git] / dlls / ntdll / sync.c
blobaf6c1e9896c51305a515586dc95a9978f1bbc000
1 /*
2 * Process synchronisation
3 */
5 #include <stdlib.h>
6 #include <string.h>
7 #include <time.h>
8 #include "debugstr.h"
9 #include "debug.h"
11 #include "ntddk.h"
14 * Semaphore
17 /******************************************************************************
18 * NtCreateSemaphore [NTDLL]
20 NTSTATUS WINAPI NtCreateSemaphore(
21 OUT PHANDLE SemaphoreHandle,
22 IN ACCESS_MASK DesiredAccess,
23 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
24 IN ULONG InitialCount,
25 IN ULONG MaximumCount)
27 FIXME(ntdll,"(%p,0x%08lx,%p(%s),0x%08lx,0x%08lx) stub!\n",
28 SemaphoreHandle, DesiredAccess, ObjectAttributes,
29 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
30 InitialCount, MaximumCount);
31 return 0;
34 /******************************************************************************
35 * NtOpenSemaphore [NTDLL]
37 NTSTATUS WINAPI NtOpenSemaphore(
38 IN HANDLE SemaphoreHandle,
39 IN ACCESS_MASK DesiredAcces,
40 IN POBJECT_ATTRIBUTES ObjectAttributes)
42 FIXME(ntdll,"(0x%08x,0x%08lx,%p(%s)) stub!\n",
43 SemaphoreHandle, DesiredAcces, ObjectAttributes,
44 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
45 return 0;
48 /******************************************************************************
49 * NtQuerySemaphore [NTDLL]
51 NTSTATUS WINAPI NtQuerySemaphore(
52 HANDLE SemaphoreHandle,
53 PVOID SemaphoreInformationClass,
54 OUT PVOID SemaphoreInformation,
55 ULONG Length,
56 PULONG ReturnLength)
58 FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
59 SemaphoreHandle, SemaphoreInformationClass, SemaphoreInformation, Length, ReturnLength);
60 return 0;
62 /******************************************************************************
63 * NtReleaseSemaphore [NTDLL]
65 NTSTATUS WINAPI NtReleaseSemaphore(
66 IN HANDLE SemaphoreHandle,
67 IN ULONG ReleaseCount,
68 IN PULONG PreviousCount)
70 FIXME(ntdll,"(0x%08x,0x%08lx,%p,) stub!\n",
71 SemaphoreHandle, ReleaseCount, PreviousCount);
72 return 0;
76 * Event
79 /**************************************************************************
80 * NtCreateEvent [NTDLL.71]
82 NTSTATUS WINAPI NtCreateEvent(
83 OUT PHANDLE EventHandle,
84 IN ACCESS_MASK DesiredAccess,
85 IN POBJECT_ATTRIBUTES ObjectAttributes,
86 IN BOOLEAN ManualReset,
87 IN BOOLEAN InitialState)
89 FIXME(ntdll,"(%p,0x%08lx,%p(%s),%08x,%08x): empty stub\n",
90 EventHandle,DesiredAccess,ObjectAttributes,
91 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
92 ManualReset,InitialState);
93 return 0;
96 /******************************************************************************
97 * NtOpenEvent [NTDLL]
99 NTSTATUS WINAPI NtOpenEvent(
100 OUT PHANDLE EventHandle,
101 IN ACCESS_MASK DesiredAccess,
102 IN POBJECT_ATTRIBUTES ObjectAttributes)
104 FIXME(ntdll,"(%p,0x%08lx,%p(%s)),stub!\n",
105 EventHandle,DesiredAccess,ObjectAttributes,
106 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
107 return 0;
110 /******************************************************************************
111 * NtSetEvent [NTDLL]
113 NTSTATUS WINAPI NtSetEvent(
114 IN HANDLE EventHandle,
115 PULONG NumberOfThreadsReleased)
117 FIXME(ntdll,"(0x%08x,%p)\n",
118 EventHandle, NumberOfThreadsReleased);
119 return 0;