Пример #1
0
        public static int GetClassName(IntPtr hWnd, out string lpString)
        {
            WindowsAPI.STRINGBUFFER sTRINGBUFFER = default(WindowsAPI.STRINGBUFFER);
            int className = WindowsAPI.GetClassName(hWnd, out sTRINGBUFFER, 512);

            lpString = sTRINGBUFFER.szText;
            return(className);
        }
Пример #2
0
        public static int GetWindowText(IntPtr hWnd, out string text)
        {
            WindowsAPI.STRINGBUFFER sTRINGBUFFER = default(WindowsAPI.STRINGBUFFER);
            int windowText = WindowsAPI.GetWindowText(hWnd, out sTRINGBUFFER, 512);

            text = sTRINGBUFFER.szText;
            return(windowText);
        }
Пример #3
0
 private static extern int GetClassName(IntPtr hWnd, out WindowsAPI.STRINGBUFFER lpString, int nMaxCount);
Пример #4
0
 private static extern int GetWindowText(IntPtr hWnd, out WindowsAPI.STRINGBUFFER text, int nMaxCount);