This function is used to lock or unlock a window.
WinLockWindow(hwndNext,FALSE);
Returns the locked window handle (HWND).