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;
        }