[C++]Poxy DLL problem with SDL menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Yttrium's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++]Poxy DLL problem with SDL

    Hello,
    I want to make a SDL proxy DLL, which 'wrote' over a graphic surface.
    The idea was to intercept the SDL call to SDL_UnlockSurface to get the pointer to the surface and to add my data,
    For this, i use the 'dll proxy' method (substitution of the original dll by mine)
    Link :
    Create your Proxy DLLs automatically - CodeProject

    To test this, i create a graphic SDL project a try to get the fonction "SDL_Delay"
    Code:
    SDL_Delay(Uint32 time)
    void function with only 1 argument (Uint32)
    And for my dll i try this :

    Code:
    extern "C" void __stdcall __E__33__(int ms)
    	{
     
    		typedef void (__stdcall *pS)(int);
    		pS pps = (pS)p[33*4];
    		pps(ms);
     
     
    	}
    and it plant every time...
    but if i don't try to get arguments, it work !

    Code:
    extern "C" __declspec(naked) void __stdcall __E__33__()
    	{
    	VarTest = VarTest +1
            __asm
    		{
    		jmp p[33*4];
    		}
    	}
    And the VarTest increase...

    So, did somebody get an idea ?

    To finish, i want to apologize for my very very bad English, I made my best to be understandable

    [C++]Poxy DLL problem with SDL

Similar Threads

  1. [Core] Problem with libeay32.dll
    By Castillo in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-28-2011, 08:07 PM
  2. Problem with fasmdll_managed.dll & C#
    By Sel3n in forum Programming
    Replies: 0
    Last Post: 08-02-2009, 03:03 PM
  3. Question regarding DLL-export and problems with the stack
    By schlumpf in forum WoW Memory Editing
    Replies: 8
    Last Post: 03-12-2009, 06:28 PM
  4. problem with 4541 dlls
    By rahburt33 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-08-2008, 12:46 PM
  5. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
All times are GMT -5. The time now is 07:26 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search