EngAcquireSemaphore function

The EngAcquireSemaphore function acquires the resource associated with the semaphore for exclusive access by the calling thread.

Syntax


VOID EngAcquireSemaphore(
  _In_ HSEMAPHORE hsem
);

Parameters

hsem [in]

Handle to the semaphore associated with the resource to be acquired.

Return value

None

Remarks

EngAcquireSemaphore allows exclusive access to the driver resource associated with the semaphore by locking out all other threads from accessing the semaphore's resource.

A call to this routine should be followed with a call to EngReleaseSemaphore as quickly as possible.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngCreateSemaphore
EngDeleteSemaphore
EngIsSemaphoreOwned
EngIsSemaphoreOwnedByCurrentThread
EngReleaseSemaphore

 

 

Send comments about this topic to Microsoft

Show: