BOOL IsLocked( DWORD dwObject );
Return Value
Nonzero if the specified object is locked; otherwise 0.
Parameters
dwObject
The index in the array of objects corresponding to the object whose state is being queried.
Remarks
Determines if the specified object is nonsignaled (unavailable).