Du benötigst die User Space APIs und folgendes:
Retrieve Lock Information (QWCRLCKI) API