ReactOS  0.4.15-dev-3175-g222acf5
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 {
22  Test_Release();
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 TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
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
#define STATUS_SUCCESS
Definition: shellext.h:65
NTSTATUS NTAPI NtReleaseMutant(IN HANDLE MutantHandle, IN PLONG PreviousCount OPTIONAL)
Definition: mutant.c:296

Referenced by START_TEST().