ReactOS 0.4.15-dev-7924-g5949c20
NtMutant.c File Reference
#include "precomp.h"
Include dependency graph for NtMutant.c:

Go to the source code of this file.

Functions

VOID Test_Release (VOID)
 
 START_TEST (NtMutant)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtMutant  )

Definition at line 20 of file NtMutant.c.

21{
23}
VOID Test_Release(VOID)
Definition: NtMutant.c:5

◆ Test_Release()

VOID Test_Release ( VOID  )

Definition at line 5 of file NtMutant.c.

6{
7 HANDLE MutantHandle;
9
10 Status = NtCreateMutant(&MutantHandle, 0, NULL, TRUE);
12
13 Status = NtReleaseMutant(MutantHandle, NULL);
15
16}
#define ok_ntstatus(status, expected)
Definition: atltest.h:135
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

Referenced by START_TEST().