Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 759 Bytes

cmdsemrequest2.md

File metadata and controls

40 lines (32 loc) · 759 Bytes
description title ms.custom ms.date ms.service ms.reviewer ms.suite ms.topic
Learn more about: CMDSemRequest
CMDSemRequest2
11/30/2017
host-integration-server
article

CMDSemRequest

The CMDSemRequest function requests a RAM semaphore.

Syntax

  
USHORT FAR CMDSemRequest(  
ULONG FAR   
*ramSem,   
ULONG timeOut   
);  

Parameters

ramSem
Address of the semaphore.

timeOut
Length of time in milliseconds to wait before returning.

Return Value

0
OK.

ERROR_SEM_TIMEOUT
Time-out expired before semaphore operation completed.

ERROR_SEM_OWNED
This thread or another thread owns the semaphore, and the calling thread specified zero time-out.