ReactOS
0.4.16-dev-852-gcfcc8d8
NtMutant.c
Go to the documentation of this file.
1
2
#include "
precomp.h
"
3
4
VOID
5
Test_Release
(
VOID
)
6
{
7
HANDLE
MutantHandle;
8
NTSTATUS
Status
;
9
10
Status
=
NtCreateMutant
(&MutantHandle, 0,
NULL
,
TRUE
);
11
ok_ntstatus
(
Status
,
STATUS_SUCCESS
);
12
13
Status
=
NtReleaseMutant
(MutantHandle,
NULL
);
14
ok_ntstatus
(
Status
,
STATUS_SUCCESS
);
15
16
}
17
18
19
20
START_TEST
(NtMutant)
21
{
22
Test_Release
();
23
}
Test_Release
VOID Test_Release(VOID)
Definition:
NtMutant.c:5
ok_ntstatus
#define ok_ntstatus(status, expected)
Definition:
atltest.h:135
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
NtCreateMutant
NTSTATUS NTAPI NtCreateMutant(OUT PHANDLE MutantHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN BOOLEAN InitialOwner)
Definition:
mutant.c:79
NtReleaseMutant
NTSTATUS NTAPI NtReleaseMutant(IN HANDLE MutantHandle, IN PLONG PreviousCount OPTIONAL)
Definition:
mutant.c:296
STATUS_SUCCESS
#define STATUS_SUCCESS
Definition:
shellext.h:65
precomp.h
modules
rostests
apitests
ntdll
NtMutant.c
Generated on Sun Mar 23 2025 06:07:34 for ReactOS by
1.9.6