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

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

            text = text1.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);