mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
27 lines
366 B
C
27 lines
366 B
C
|
|
||
|
#include <apitest.h>
|
||
|
|
||
|
#include <ndk/exfuncs.h>
|
||
|
|
||
|
|
||
|
VOID
|
||
|
Test_Release(VOID)
|
||
|
{
|
||
|
HANDLE MutantHandle;
|
||
|
NTSTATUS Status;
|
||
|
|
||
|
Status = NtCreateMutant(&MutantHandle, 0, NULL, TRUE);
|
||
|
ok_ntstatus(Status, STATUS_SUCCESS);
|
||
|
|
||
|
Status = NtReleaseMutant(MutantHandle, NULL);
|
||
|
ok_ntstatus(Status, STATUS_SUCCESS);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
START_TEST(NtMutant)
|
||
|
{
|
||
|
Test_Release();
|
||
|
}
|