AcTools.Utils.Helpers.ProcessExtension.EnumWindow C# (CSharp) Method

EnumWindow() private static method

private static EnumWindow ( IntPtr handle, IntPtr pointer ) : bool
handle System.IntPtr
pointer System.IntPtr
return 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;
        }