Problem of Reading PlayerGUID menu

These ads disappear when you log in.

User Tag List

Results 1 to 8 of 8
  1. #1
    Summer414's Avatar Member
    Reputation
    1
    Join Date
    Jan 2020
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem of Reading PlayerGUID

    HELP! I tried to read PlayerGUID with ReadProcessMemory in cpp. Sometimes it returned TRUE but the PlayerGUID is 0. And sometimes it returned FALSE with error code 299. It's a very simple program.
    Code:
    #include <stdlib.h>
    #include <stdint.h>
    #include <Windows.h>
    
    static const ULONG PlayerGUID = 0x267D640;
    int main(int argc, char* argv[])
    {
    	HWND hWnd = FindWindow(NULL, "Wow.exe");
    	if (hWnd) {
    		DWORD ProcessID;
    		GetWindowThreadProcessId(hWnd, &ProcessID);
    
    		HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ | PROCESS_VM_OPERATION, false, ProcessID);
    
    		SIZE_T Bytes = 0;
    		uint64_t GUID;
    		BOOL Ret = ReadProcessMemory(hProcess, (LPVOID)PlayerGUID, &GUID, sizeof(GUID),  &Bytes);
    		if (!Ret) {
    			DWORD dwError = GetLastError();
    		}
    		CloseHandle(hProcess);
    	}
    	return 0;
    }
    This is my cpp program. Ret is TRUE and the GUID is 0. Did I do something wrong?
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I tried several times. Sometimes I got invalid GUIDs. For example, the GUID from ReadProcessMemory was 0x267D640. But what I got from /run UnitGUID("Player") is Player-4789-01764FA4.
    Last edited by Summer414; 02-02-2020 at 11:36 PM.

    These ads disappear when you log in.

  2. #2
    counted's Avatar Contributor Authenticator enabled
    Reputation
    188
    Join Date
    Mar 2008
    Posts
    167
    Thanks G/R
    10/95
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You need to rebase the PlayerGUID pointer to the current running wow binary BaseAddress.

    Also if you are working with the retail binary the GUID is Int128 not 64 bit. If you are working with Classic it should be 64bit.

  3. #3
    Westrin's Avatar Member
    Reputation
    1
    Join Date
    Feb 2020
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heh, 64 bit? So there is no need in 128 bit?

  4. #4
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    102
    Thanks G/R
    3/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GUIDs are 128 bits on classic as well.

  5. #5
    charles420's Avatar Contributor
    Reputation
    224
    Join Date
    Jun 2009
    Posts
    210
    Thanks G/R
    10/57
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    correct both 128 live and classic i use my bot on both i just have it use offsets based on what version and dbcs the same as well seems for most of them etc
    Last edited by charles420; 02-03-2020 at 11:42 PM.

  6. #6
    Summer414's Avatar Member
    Reputation
    1
    Join Date
    Jan 2020
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by counted View Post
    You need to rebase the PlayerGUID pointer to the current running wow binary BaseAddress.

    Also if you are working with the retail binary the GUID is Int128 not 64 bit. If you are working with Classic it should be 64bit.
    Yes, you're right. I should rebase playerGUID to BaseAddress~I'm working with wow classic. Thanks a lot !

  7. #7
    Summer414's Avatar Member
    Reputation
    1
    Join Date
    Jan 2020
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Westrin View Post
    Heh, 64 bit? So there is no need in 128 bit?
    I'm working with wow classic~I'm not sure it is 64-bit or 128-bit.

  8. #8
    counted's Avatar Contributor Authenticator enabled
    Reputation
    188
    Join Date
    Mar 2008
    Posts
    167
    Thanks G/R
    10/95
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I do not work with classic, but if Charles420 says it is 128 bit on classic go with that.

Similar Threads

  1. [Bug] Some problems of Chinese users about the original TurboHUD
    By hyy34 in forum TurboHUD Support
    Replies: 16
    Last Post: 08-09-2018, 09:02 AM
  2. A Rather Annoying Problem of Mine...
    By Akamastormrage in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-15-2008, 01:13 PM
  3. Way to Fix the Whole Scan.dll Problem (Please read before anyone flames/moderates)
    By guitargod218 in forum World of Warcraft Model Editing
    Replies: 13
    Last Post: 06-08-2008, 02:12 PM
  4. [c++] problem with reading memory
    By Lucani in forum WoW Memory Editing
    Replies: 3
    Last Post: 05-08-2008, 03:41 AM
  5. 1-6 of each epic/blue/green <READ>
    By olsalty in forum World of Warcraft Exploits
    Replies: 31
    Last Post: 08-01-2006, 12:51 AM
All times are GMT -5. The time now is 05:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search