Implemented SHCreateShellFolderViewEx.
[wine.git] / dlls / ntdll / sync.c
blob9d2a352b5632b61f602e2b3c6b85dbe5351f06aa
1 /*
2 * Process synchronisation
3 */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <time.h>
9 #include "debugstr.h"
10 #include "debugtools.h"
12 #include "ntddk.h"
14 DEFAULT_DEBUG_CHANNEL(ntdll)
17 * Semaphore
20 /******************************************************************************
21 * NtCreateSemaphore [NTDLL]
23 NTSTATUS WINAPI NtCreateSemaphore(
24 OUT PHANDLE SemaphoreHandle,
25 IN ACCESS_MASK DesiredAccess,
26 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
27 IN ULONG InitialCount,
28 IN ULONG MaximumCount)
30 FIXME("(%p,0x%08lx,%p(%s),0x%08lx,0x%08lx) stub!\n",
31 SemaphoreHandle, DesiredAccess, ObjectAttributes,
32 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
33 InitialCount, MaximumCount);
34 return 0;
37 /******************************************************************************
38 * NtOpenSemaphore [NTDLL]
40 NTSTATUS WINAPI NtOpenSemaphore(
41 IN HANDLE SemaphoreHandle,
42 IN ACCESS_MASK DesiredAcces,
43 IN POBJECT_ATTRIBUTES ObjectAttributes)
45 FIXME("(0x%08x,0x%08lx,%p(%s)) stub!\n",
46 SemaphoreHandle, DesiredAcces, ObjectAttributes,
47 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
48 return 0;
51 /******************************************************************************
52 * NtQuerySemaphore [NTDLL]
54 NTSTATUS WINAPI NtQuerySemaphore(
55 HANDLE SemaphoreHandle,
56 PVOID SemaphoreInformationClass,
57 OUT PVOID SemaphoreInformation,
58 ULONG Length,
59 PULONG ReturnLength)
61 FIXME("(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
62 SemaphoreHandle, SemaphoreInformationClass, SemaphoreInformation, Length, ReturnLength);
63 return 0;
65 /******************************************************************************
66 * NtReleaseSemaphore [NTDLL]
68 NTSTATUS WINAPI NtReleaseSemaphore(
69 IN HANDLE SemaphoreHandle,
70 IN ULONG ReleaseCount,
71 IN PULONG PreviousCount)
73 FIXME("(0x%08x,0x%08lx,%p,) stub!\n",
74 SemaphoreHandle, ReleaseCount, PreviousCount);
75 return 0;
79 * Event
82 /**************************************************************************
83 * NtCreateEvent [NTDLL.71]
85 NTSTATUS WINAPI NtCreateEvent(
86 OUT PHANDLE EventHandle,
87 IN ACCESS_MASK DesiredAccess,
88 IN POBJECT_ATTRIBUTES ObjectAttributes,
89 IN BOOLEAN ManualReset,
90 IN BOOLEAN InitialState)
92 FIXME("(%p,0x%08lx,%p(%s),%08x,%08x): empty stub\n",
93 EventHandle,DesiredAccess,ObjectAttributes,
94 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL,
95 ManualReset,InitialState);
96 return 0;
99 /******************************************************************************
100 * NtOpenEvent [NTDLL]
102 NTSTATUS WINAPI NtOpenEvent(
103 OUT PHANDLE EventHandle,
104 IN ACCESS_MASK DesiredAccess,
105 IN POBJECT_ATTRIBUTES ObjectAttributes)
107 FIXME("(%p,0x%08lx,%p(%s)),stub!\n",
108 EventHandle,DesiredAccess,ObjectAttributes,
109 ObjectAttributes ? debugstr_w(ObjectAttributes->ObjectName->Buffer) : NULL);
110 return 0;
113 /******************************************************************************
114 * NtSetEvent [NTDLL]
116 NTSTATUS WINAPI NtSetEvent(
117 IN HANDLE EventHandle,
118 PULONG NumberOfThreadsReleased)
120 FIXME("(0x%08x,%p)\n",
121 EventHandle, NumberOfThreadsReleased);
122 return 0;