AcTools.Utils.Helpers.ProcessExtension.EnumWindow C# (CSharp) Метод

EnumWindow() приватный статический Метод

private static EnumWindow ( IntPtr handle, IntPtr pointer ) : bool
handle System.IntPtr
pointer System.IntPtr
Результат bool
        private static bool EnumWindow(IntPtr handle, IntPtr pointer) {
            GCHandle gch = GCHandle.FromIntPtr(pointer);
            List<IntPtr> list = gch.Target as List<IntPtr>;
            if (list == null)
                throw new InvalidCastException("GCHandle Target could not be cast as List<IntPtr>");
            list.Add(handle);
            return true;
        }