Undocumented functions of NTDLL

2OO1, 1O February


Gridstore - NonStop Storage

NtCreateSemaphore
NtCreateSemaphore

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateSemaphore(

OUT PHANDLE SemaphoreHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN ULONG InitialCount, IN ULONG MaximumCount );




Function NtCreateSemaphore creates Semaphore Object with or without name in Object Namespace, and sets initial and maximum releases number.



  • SemaphoreHandle
  •     Result of call - pointer to HANDLE to Semaphore Object.
  • DesiredAccess
  •     Access rights to Semaphore Object. Can be one of:
  • ObjectAttributes
  •     Optional pointer to OBJECT_ATTRIBUTES structure containing semaphore's name.
  • InitialCount
  •     Initial state of semaphore. Typically the same as MaximumCount.
  • MaximumCount
  •     Maximum releases number.


    Documented by:
    Tomasz Nowak



    Requirements:
    Library: ntdll.lib


    See also:
    NtOpenSemaphore
    NtQuerySemaphore