Пример #1
0
        private static int WinProc(int uMsg, int wParam, int lParam)
        {
            CallBack_EnumWinProc myEnumProc = new CallBack_EnumWinProc(EnumWinProc);

            if (uMsg == HCBT_ACTIVATE)
            {
                EnumChildWindows(wParam, myEnumProc, 0);
                UnhookWindowsHookEx(hHook);
            }

            return(0);
        }
Пример #2
0
 static extern int EnumChildWindows(int hWndParent, CallBack_EnumWinProc lpEnumFunc, int lParam);