Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    D3D device Pointer hook ?!


    IchwillVip
     Share

    Recommended Posts

    Hey All,

     

    I have some problems with the device pointer...

    The CreateDevice function of Direct3D return the device pointer...

    So, i have an d3d9 game and want the device pointer.

    I know that i have to hook the Direct3DCreate9 function that is no problem but how i become with the hooked Direct3DCreate9 function the device pointer?! The function returns only an pointer to an IDirect3D9 interface ...

     

    Pls help me and sry for my bad english O.o

     

    mfg IchwillVIP

    Link to comment
    Share on other sites

    yes you are getting a pointer to the IDirect3D9 interface, but in that interface there is a function called CreateDevice. you need to hook that function to reveive the IDirect3DDevice9 pointer.

    Link to comment
    Share on other sites

    the CreateDevice hook:

    HRESULT __stdcall CreateDevice( UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice9** ppReturnedDeviceInterface)
    {
    	HRESULT hr = m_d3d->CreateDevice(Adapter, DeviceType, hFocusWindow, BehaviorFlags,
    		pPresentationParameters, ppReturnedDeviceInterface);
    
    	if(SUCCEEDED(hr))
    	{
    
    		*ppReturnedDeviceInterface = //and now?!?		<-------- MY PROBLEM :D
    	}
    
    	return hr;
    }

     

    and now i have 1 littel problem ... someone can help me ? ^^

    Edited by IchwillVip
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...