JCL Help:QuerySemaphore

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns information about a semaphore object.


Pascal

 function QuerySemaphore(Handle: THandle; var Info: TSemaphoreCounts): Boolean;


Parameters

Parameters Description
Handle: THandle Handle of the semaphore object for which you want information.
var Info: TSemaphoreCounts Received information about the event. TSemaphoreInfo is defined as: TSemaphoreCounts = record CurrentCount: Longint; MaximumCount: Longint; end; The following table describes the members of this record:


Return Value

If the function succeeds it returns True, otherwise it returns False. In the latter case the contents of the Info parameter are undefined.


Description

QuerySemaphore returns information about the semaphore object specified by Handle. The information is returned in a TSemaphoreInfo record and contains members to indicate the semaphores' current and maximum count.


About

Unit

JclSynch


Donator

Marcel van Brakel


Contributors

Anonymous


Notes

This function relies on undocumented information and uses an undocumented API call.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page