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