#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
typedef struct _SEMAPHORE_BASIC_INFORMATION
{
LONG CurrentCount;
LONG MaximumCount;
} SEMAPHORE_BASIC_INFORMATION, *PSEMAPHORE_BASIC_INFORMATION;
View code on GitHub
Structure SEMAPHORE_BASIC_INFORMATION
is retrieved as a result of call NtQuerySemaphore
with SemaphoreBasicInformation
information class.
Current state of semaphore's counter.
Maximum counter position, defined with call to NtCreateSemaphore
.