http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DLL GetModuleHandle strange prob..



Ok this sorta has to do with gameprogramming.. well in an oblique way (since
all regular programming usually goes into games..)
I'm using GetModuleHandle to open up a DLL...I cant use "LoadLibrary"
because I just want the address space of the process.
This works on some DLLs.. but I had just happened to pick "Shell32.dll" to
test my program on.
Well, it returns NULL..I tried user32.dll and it returns fine, I just want
to know why this is? Is it some type of process memory space protection or
what.
I'm just trying to go through all of the imported modules in the DLL and
record their import address table (IAT) pointers for HMODULE..
If anyone knows about any of this..please respond.
(Oh yeah I'm a complete idiot in win32 programming, but this DOES have to do
with gameprogramming since my original attempt at this has to do with
creating a game DLL and using the IAT pointers to change the address of some
of the process functions so that the game can be change... using hooks,
etc.. )


Jeremy Bowne
Freelance programmer
ICQ#:13029651

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html