2OO1, 1O February
NtQuerySemaphore
NtQuerySemaphore
NTSYSAPI
NTSTATUS
NTAPI
NtQuerySemaphore(
IN HANDLE SemaphoreHandle,
IN SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
OUT PVOID SemaphoreInformation,
IN ULONG SemaphoreInformationLength,
OUT PULONG ReturnLength OPTIONAL );
Function NtQuerySemaphore retrieve semaphore's
parameters (see
SEMAPHORE_BASIC_INFORMATION).
- SemaphoreHandle HANDLE to
Semaphore Object opened with SEMAPHORE_QUERY_STATE
access.
- SemaphoreInformation Pointer to user's
allocated buffer for result data.
- SemaphoreInformationLength Size of
SemaphoreInformation buffer, in
bytes.
- ReturnLength Optionally returns
required buffer size.
- Documented by:
- Tomasz Nowak
Requirements:
- Library: ntdll.lib
See also:
-
NtCreateSemaphore
-
NtOpenSemaphore
-
SEMAPHORE_BASIC_INFORMATION
-
SEMAPHORE_INFORMATION_CLASS