- SemQueryValue
-
- retcode
- reascode
- semaphore_handle
- semaphore_value
Purpose
Use the SemQueryValue function to get the value of a semaphore.
Parameters
- retcode
- (output,INT,4) is a variable where the function stores the return code.
- reascode
- (output,INT,4) is a variable where the function stores the reason code.
- semaphore_handle
- (input,INT,4) is a variable for specifying the handle of the semaphore. This value is returned
by the SemCreate or SemGetHandle function.
- semaphore_value
- (output,INT,4) is a variable where the function returns the value of the semaphore.
Return Codes and Reason Codes
Return Code |
Reason Code |
Meaning |
vm_syn_success |
vm_syn_success |
SemQueryValue completed successfully |
vm_syn_error |
vm_syn_handle_not_found |
Semaphore_handle does not exist |
Programming Language Bindings
Language |
Language Binding File |
C |
VMCSYN H |
Assembler |
VMASMSYN MACRO |
REXX |
VMREXSYN COPY |