Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace DumpUI
- {
- class Program
- {
- static void Main(string[] args)
- {
- UInt32 Offset_UIBase = 0x00B499A8;
- Int32 TotalFrames = 0;
- Int32 TotalVisibleFrames = 0;
- Magic.BlackMagic BM = new Magic.BlackMagic(Magic.SProcess.GetProcessFromProcessName("Wow"));
- UInt32 Base = BM.ReadUInt(Offset_UIBase);
- UInt32 Frame = BM.ReadUInt(Base + 0x0CD4);
- Console.WriteLine("Base : 0x" + Base.ToString("X"));
- while (Frame != 0)
- {
- Int32 isVisible = BM.ReadInt(Frame + 0xDC);
- if (isVisible == 1)
- TotalVisibleFrames++;
- String Name = BM.ReadASCIIString(BM.ReadUInt(Frame + 0x1C), 255);
- if (Name.Length > 0)
- {
- Console.WriteLine("Frame 0x" + Frame.ToString("X") + " Name : " + Name);
- }
- TotalFrames++;
- Frame = BM.ReadUInt(Frame + BM.ReadUInt(Base + 0x0CCC) + 4);
- }
- Console.WriteLine("Total frames : " + TotalFrames);
- Console.WriteLine("Total visible frames : " + TotalVisibleFrames);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement