2 * Process synchronisation
10 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(ntdll
)
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
);
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
);
51 /******************************************************************************
52 * NtQuerySemaphore [NTDLL]
54 NTSTATUS WINAPI
NtQuerySemaphore(
55 HANDLE SemaphoreHandle
,
56 PVOID SemaphoreInformationClass
,
57 OUT PVOID SemaphoreInformation
,
61 FIXME("(0x%08x,%p,%p,0x%08lx,%p) stub!\n",
62 SemaphoreHandle
, SemaphoreInformationClass
, SemaphoreInformation
, Length
, ReturnLength
);
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
);
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
);
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
);
113 /******************************************************************************
116 NTSTATUS WINAPI
NtSetEvent(
117 IN HANDLE EventHandle
,
118 PULONG NumberOfThreadsReleased
)
120 FIXME("(0x%08x,%p)\n",
121 EventHandle
, NumberOfThreadsReleased
);