Changed CBGetDroppedControlRect to be compliant with Windows API.
[wine/testsucceed.git] / dlls / ntdll / sync.c
blob293c893fcf5a10dc3a29b42109d2976f1a32551a
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"
13 DEFAULT_DEBUG_CHANNEL(ntdll)
16 * Semaphore
19 /******************************************************************************
20 * NtCreateSemaphore [NTDLL]
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)
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;
36 /******************************************************************************
37 * NtOpenSemaphore [NTDLL]
39 NTSTATUS WINAPI NtOpenSemaphore(
40 IN HANDLE SemaphoreHandle,
41 IN ACCESS_MASK DesiredAcces,
42 IN POBJECT_ATTRIBUTES ObjectAttributes)
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;
50 /******************************************************************************
51 * NtQuerySemaphore [NTDLL]
53 NTSTATUS WINAPI NtQuerySemaphore(
54 HANDLE SemaphoreHandle,
55 PVOID SemaphoreInformationClass,
56 OUT PVOID SemaphoreInformation,
57 ULONG Length,
58 PULONG ReturnLength)
60 FIXME(ntdll,"(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
61 SemaphoreHandle, SemaphoreInformationClass, SemaphoreInformation, Length, ReturnLength);
62 return 0;
64 /******************************************************************************
65 * NtReleaseSemaphore [NTDLL]
67 NTSTATUS WINAPI NtReleaseSemaphore(
68 IN HANDLE SemaphoreHandle,
69 IN ULONG ReleaseCount,
70 IN PULONG PreviousCount)
72 FIXME(ntdll,"(0x%08x,0x%08lx,%p,) stub!\n",
73 SemaphoreHandle, ReleaseCount, PreviousCount);
74 return 0;
78 * Event
81 /**************************************************************************
82 * NtCreateEvent [NTDLL.71]
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)
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;
98 /******************************************************************************
99 * NtOpenEvent [NTDLL]
101 NTSTATUS WINAPI NtOpenEvent(
102 OUT PHANDLE EventHandle,
103 IN ACCESS_MASK DesiredAccess,
104 IN POBJECT_ATTRIBUTES ObjectAttributes)
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;
112 /******************************************************************************
113 * NtSetEvent [NTDLL]
115 NTSTATUS WINAPI NtSetEvent(
116 IN HANDLE EventHandle,
117 PULONG NumberOfThreadsReleased)
119 FIXME(ntdll,"(0x%08x,%p)\n",
120 EventHandle, NumberOfThreadsReleased);
121 return 0;