News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Write a proxy.dll

Started by little_Coder, April 15, 2006, 08:34:27 PM

Previous topic - Next topic

little_Coder

Hello I want to write a proxy.dll
It is not ment a socksproxy.
I mean a dll which has exactly the same functionnames as in the original dll
e.g.
in the kernel32.dll is ExitWindows
When I want to filter ExitWindows to block ExitWindows, I write a kernel32.dll which has an modified ExitWindows, but the other functions will be just relayed to the real kernel32.dll
So like this

An Application --> ExitWindows --> kernel32.dll (proxy) -->ExitWindows--> copykernel32.dll (real)


Does somebody has a sample source?

Thx

Vortex

:naughty:

What are you trying to achieve?

little_Coder

Okay, Okay
Wanted to replace the original opengl.dll


...
for learning

RedXVII

^^ this is the kindof thing i wanted to do. As in make my own graphics library (recent post of mine), or emulate some windows libraries in some way. Dint find much about it  :'(

Tell me if you find any more info!

Cheers

jckl

I have seen this done with directx and it did work. It was used to display the person speaking in a program called teamspeak in the game that we were playing..

Ar-ras

I saw something like this for a firewall
wrapping the ws2_32.dll

such a technic is called wrapper dll


Tedd

You don't need to filter ExitWindows, just return FALSE in reply to the WM_QUERYENDSESSION message.
No snowflake in an avalanche feels responsible.

BytePtr

Quote from: little_Coder on April 15, 2006, 10:16:01 PM
Okay, Okay
Wanted to replace the original opengl.dll
...
for learning

Whats the point of this all?
If you are so good in OpenGL then go create better some game in ASM. And work on this "project".
And you will learn more.

QvasiModo

I agree, if it's just for learning it's probably a little too complex. You're better off following NeHe's tutorials instead.

http://nehe.gamedev.net/