CURELab.SignLanguage.HandDetector.KinectStudioController.EnumWindowsFunc C# (CSharp) Method

EnumWindowsFunc() private method

private EnumWindowsFunc ( IntPtr hWnd, int lParam ) : bool
hWnd System.IntPtr
lParam int
return bool
        private bool EnumWindowsFunc(IntPtr hWnd, int lParam)
        {
            int ProcessId;
            if (hWnd == IntPtr.Zero)
                return true;		// Not a window
            if (!win32API.IsWindowVisible(hWnd))
                return true;
            win32API.GetWindowThreadProcessId(hWnd, out ProcessId);
            if (lParam == ProcessId)
            {
                hWindow = hWnd;
                return false;
            }
            return true;
        }