ReactOS  0.4.15-dev-1377-ga59cecd
NtMutant.c
Go to the documentation of this file.
1 
2 #include "precomp.h"
3 
4 VOID
6 {
7  HANDLE MutantHandle;
9 
10  Status = NtCreateMutant(&MutantHandle, 0, NULL, TRUE);
12 
13  Status = NtReleaseMutant(MutantHandle, NULL);
15 
16 }
17 
18 
19 
20 START_TEST(NtMutant)
21 {
22  Test_Release();
23 }
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
VOID Test_Release(VOID)
Definition: NtMutant.c:5
Status
Definition: gdiplustypes.h:24
NTSTATUS NTAPI NtCreateMutant(OUT PHANDLE MutantHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN BOOLEAN InitialOwner)
Definition: mutant.c:79
#define NULL
Definition: types.h:112
#define ok_ntstatus(status, expected)
Definition: atltest.h:135
START_TEST(NtMutant)
Definition: NtMutant.c:20
#define STATUS_SUCCESS
Definition: shellext.h:65
NTSTATUS NTAPI NtReleaseMutant(IN HANDLE MutantHandle, IN PLONG PreviousCount OPTIONAL)
Definition: mutant.c:295