public void testCS() {
try {
CRITICAL_SECTION cs = new CRITICAL_SECTION();
InitializeCriticalSection(pointerTo(cs));
EnterCriticalSection(pointerTo(cs));
System.out.println(cs.OwningThread().getPeer());
LeaveCriticalSection(pointerTo(cs));
DeleteCriticalSection(pointerTo(cs));
} catch(Exception e) {
e.printStackTrace();