Using GetObjectByGuid in Process menu

User Tag List

Results 1 to 3 of 3
  1. #1
    ziinus's Avatar Member
    Reputation
    2
    Join Date
    Nov 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using GetObjectByGuid in Process

    Hi every one,

    I'm trying to use getobjectbyguid in process with my injected dll hooking endscene.

    here is my code

    Code:
    typedef DWORD_PTR (__cdecl * tGetObjectByGuid)(unsigned __int64 Guid, int a1);
    tGetObjectByGuid oGetObjectByGuid = reinterpret_cast<tGetObjectByGuid>(0x007BE110);
    and i'm using it like this :

    Code:
    DWORD_PTR ObjectReturned = oGetObjectByGuid(LocalGuid,1);
    Where LocalGuid is a unsigned __int64. ( I've checked and it contains the right value )


    But the function seems to always return 0, no wow crash nothing but 0 ^^

    Does anaybody know where i'm wrong and can show me the right direction ?
    I've searched but didn't found a topic where it was called in process.


    Thanks

    Using GetObjectByGuid in Process
  2. #2
    ziinus's Avatar Member
    Reputation
    2
    Join Date
    Nov 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I solved id thank you, i'm really Dumb =D

    Was putting the wrong value into LocalGuid...


    Anyway, if it helps somebody :


    Code:
    // GetObjectByGuid
    typedef DWORD_PTR (__cdecl * tGetObjectByGuid)(unsigned __int64 Guid);
    tGetObjectByGuid oGetObjectByGuid = reinterpret_cast<tGetObjectByGuid>(0x007BE110);
    and

    Code:
    DWORD_PTR ObjectedReturned = oGetObjectByGuid(LocalGuid);
    Works when you call it in the main thread

  3. #3
    akh's Avatar Member
    Reputation
    4
    Join Date
    Mar 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try setting the filter arg to -1. This is how the function is called in WoWX:

    Code:
    CGObject_C * CGCurMgr_C::GetObjectByGUID( WGUID wGuid )
    {
    	typedef CGObject_C * ( __cdecl * tGetObjectByGUID )( WGUID wGuid, int dwFilter );
    	tGetObjectByGUID oGetObjectByGUID = reinterpret_cast<tGetObjectByGUID>( gpWoWX->GetFindPattern()->GetAddress( "GetObjectByGUID" ) );
    
    	return oGetObjectByGUID( wGuid, -1 );
    }

Similar Threads

  1. Replies: 2
    Last Post: 07-14-2013, 11:52 PM
  2. [Tutorial] How to use VECTOR to output your processes.
    By BitHacker in forum Programming
    Replies: 0
    Last Post: 05-31-2012, 06:48 AM
  3. [Help] How to use ASM in-process
    By teufel123 in forum WoW Memory Editing
    Replies: 12
    Last Post: 12-16-2011, 02:01 AM
  4. How to use unmanaged functions inside process?
    By haku43 in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 04-01-2011, 07:29 AM
  5. [Help Request] Using GetObjectbyGUID
    By FenixTX2 in forum WoW Memory Editing
    Replies: 19
    Last Post: 07-08-2009, 09:02 PM
All times are GMT -5. The time now is 03:15 PM. 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