JCL Help:QueryMutex

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns information about a mutex object.


Pascal

 function QueryMutex(Handle: THandle; var Info: TMutexInfo): Boolean;


Parameters

Parameters Description
Handle: THandle Handle of the mutex object for which you want information.
var Info: TMutexInfo Received information about the mutex. TMutexInfo is defined as: TMutexInfo = record SignalState: Longint; Owned: Boolean; Abandoned: Boolean; 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

QueryMutex returns information about the mutex object specified by Handle. The information is returned in a TMutexInfo record and contains members to indicate whether the mutex is signaled and owned.


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