예제 #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);