BrowserTools.Utils.GetClassName C# (CSharp) Метод

GetClassName() приватный Метод

private GetClassName ( IntPtr hWnd, StringBuilder lpClassName, int nMaxCount ) : int
hWnd System.IntPtr
lpClassName StringBuilder
nMaxCount int
Результат int
        static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);

Same methods

Utils::GetClassName ( IntPtr hWnd ) : string

Usage Example

Пример #1
0
        static WindowInfo GetWindowInfo(IntPtr hwnd, string processName)
        {
            WindowInfo wi = Utils.GetWindowInfo(hwnd);

            string childWindowName = GetChildWindowName(processName);

            if (!String.IsNullOrEmpty(childWindowName))
            {
                EnumChildWindows(hwnd, (IntPtr childHWnd, IntPtr param) => {
                    if (Utils.GetClassName(childHWnd) != childWindowName)
                    {
                        return(true);
                    }

                    wi.rcClient = Utils.GetWindowRect(childHWnd);
                    return(false);
                });
            }

            if (wi.rcWindow.left < 0 && wi.rcWindow.right < 0 && wi.rcWindow.top < 0 && wi.rcWindow.bottom < 0)
            {
                Console.Error.Write("Window is not on the screen");
                Environment.Exit(1);
            }

            return(wi);
        }
All Usage Examples Of BrowserTools.Utils::GetClassName