[Example][C#] WoW Process Loader menu

User Tag List

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Doesn't change the fact that you open it twice. (You read the name in both button handlers)

    Once you open a handle; store it somewhere [eg; an array] and re-use it later. There's no reason to open it again. You're just leaving the previous one open (thus, leaked), and opening a new one every time you hit button2 or whatever button it was.

    Trust me; I'm being nice as far as critiquing your code goes. Ask kynox. I can be brutal.
    new version closing the processes.

    However, i am pretty sure i am right in opening it twice like i do, i am not just reading the handle by opening it, you have to call that function for blackmagic to know which process to open.

    if i didn't recall the function, it would just read from the last process it opened, not the specific one chosen

    [Example][C#] WoW Process Loader
  2. #17
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by wowhackz0r View Post
    new version closing the processes.

    However, i am pretty sure i am right in opening it twice like i do, i am not just reading the handle by opening it, you have to call that function for blackmagic to know which process to open.

    if i didn't recall the function, it would just read from the last process it opened, not the specific one chosen
    Last I checked; BM allowed you to pass a handle to it, to use instead of one it registers internally.

    I may be wrong, if so, please do show me the code. (As I said; I don't use Shynd's lib, as I'm not OOP)

  3. #18
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Last I checked; BM allowed you to pass a handle to it, to use instead of one it registers internally.

    I may be wrong, if so, please do show me the code. (As I said; I don't use Shynd's lib, as I'm not OOP)
    i do not have a lot of experience with blackmagic, as all i am using it for is to open the process and read the memory, nothing to complex.

    if there is a way to pass a handle to it, i did not see it, as that would be easier, as using the process selector with the keyboard input i am using with
    would be made much easier as that used the windows handle not the process name

    i will look and see if there is a way to pass a handle to BM

  4. #19
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know BM's static classes (SThread, SProcess, etc) require handles to be passed to certain functions. There's your place to do so. I guess I'll have to grab BM again and see what it's actually doing nowadays.

  5. #20
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey when I run this I get the error "Not all privileges or groups referenced are assigned to the caller" on this line: "WoW.OpenProcessAndThread(processes[i]);"

    How would i fix this?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  6. #21
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here is my way to do this:

    using my connect class i can access everything i need in a specific wow pid
    Code:
        public class Connect
        {
            public Memory mem;
            public ObjectManager obj;
            public SendKey key;
    
            private int pid;
            private IntPtr hwnd;
            private string name;
    
            public Connect(int process)
            {
                this.hwnd = SWindow.FindWindowByProcessId(process);
    
                mem = new Memory(process);
                obj = new ObjectManager(mem);
                key = new SendKey(this.hwnd);
    
                this.pid = process;
                this.name = obj.info.LocalName;
            }
    
            public int PID
            {
                get { return this.pid; }
            }
    
            public IntPtr HWND
            {
                get { return this.hwnd; }
            }
    
            public string NAME
            {
                get { return this.name; }
            }
        }

    i my frame class i just create a list of these connect classes and set them as the datagridview datasource, then they will be displayed:
    Code:
    private List<Connect> ptr = new List<Connect>();
    
    
    
                int[] pids = SProcess.GetProcessesFromClassname("GxWindowClassD3d");
                foreach (int pid in pids)
                {
                    ptr.Add(new Connect(pid));
                }
                this.dataGridView_Process.DataSource = this.ptr;
                this.dataGridView_Process.Rows[0].Selected = true;
    then i can select a line and call the databounditem (my connect class) like this:
    ((Connect)this.dataGridView_Process.SelectedRows[0].DataBoundItem).obj.LocalPlayer.TargetGuid
    which would get the info from the selected wow, in this example the localplayer target guid

  7. #22
    WannaBeProgrammer's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by XAutomation View Post
    Hey when I run this I get the error "Not all privileges or groups referenced are assigned to the caller" on this line: "WoW.OpenProcessAndThread(processes[i]);"

    How would i fix this?
    If ur on vista/Win7 you should run C# as admin or run the .exe as admin, else i dunno.

  8. #23
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have debugging privileges? System.Diagnostics.Process.EnterDebugMode() == easy.

  9. #24
    vadi's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, can't download (

  10. #25
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Do you have debugging privileges? System.Diagnostics.Process.EnterDebugMode() == easy.
    Why does everyone keep suggesting this? And why does everyone include it in their libraries/binaries and therefore requiring them to be run as admin?
    Stop blindly repeating bad advice. Wow is not a system process.

  11. #26
    jayswag's Avatar Sergeant
    Reputation
    15
    Join Date
    Mar 2011
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good work

  12. #27
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Why does everyone keep suggesting this? And why does everyone include it in their libraries/binaries and therefore requiring them to be run as admin?
    Stop blindly repeating bad advice. Wow is not a system process.
    The last time I checked, Blizzard was setting restrictive ACL's on the wow client process, which -- if it's still true -- DOES require SeDebugPrivilege to overcome. Did they remove the ACL's?
    Don't believe everything you think.

  13. #28
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by amadmonk View Post
    The last time I checked, Blizzard was setting restrictive ACL's on the wow client process, which -- if it's still true -- DOES require SeDebugPrivilege to overcome. Did they remove the ACL's?
    Whilst that did indeed used to be the case, it seems to no longer be necessary. I can attach HadesMem to WoW and inject a DLL without elevating HadesMem to admin, and without enabling the debug privilege.

    Tested on v4.0.6.13923.

    P.S. Afaik, you technically never REALLY needed the debug privilege, you just needed to correctly set your own ACLs, however it's obviously easier to just enable everything rather than fiddle around.

  14. #29
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, yeah. But since I'm usually using .Net, it's far easier (as you say) to do Process.EnterDebugMode than to deal with Microsoft's typical opaque and obtuse ACL API.

    And since most of the ACL's you needed required admin privileges anyway (or at least "Power User"), it still makes perfect sense that people are just conditioned to enable SeDebug by default. It's just so much easier to set it and forget it.
    Don't believe everything you think.

  15. #30
    FinnX's Avatar Banned
    Reputation
    40
    Join Date
    Aug 2009
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cant download it?

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 10-22-2015, 08:54 AM
  2. How to get read AND write access to wow process?
    By Shutzler in forum WoW Memory Editing
    Replies: 8
    Last Post: 09-26-2009, 04:16 PM
  3. [Help] Do code in Wow process
    By porabotitel in forum Programming
    Replies: 2
    Last Post: 09-09-2009, 08:08 AM
  4. Unable to load WoW process
    By Vohrana in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 05-26-2008, 05:05 PM
  5. WoW Process Guard
    By Caaltaa in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 02-17-2008, 03:35 AM
All times are GMT -5. The time now is 06:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search