|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: DLL GetModuleHandle strange prob..
Hi Jeremy, I believe that GetModuleHandle will only return a handle to a module that has already been mapped into the current process's address space (e.g. via LoadLibrary). So probably your process has already loaded user32.dll, but not shell32.dll. Ben > -----Original Message----- > From: bownet66@uswest.net [SMTP:bownet66@uswest.net] > Sent: Tuesday, May 16, 2000 3:54 PM > To: gameprogrammer@gameprogrammer.com > Subject: 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 Mercia Software Ltd. Holt Court North, Heneage Street West Aston Science Park, Birmingham B7 4AX, UK Registered Number: 1868855 (Cardiff) Tel: 44 (0)121 359 5096 Fax: 44 (0)121 359 0375 Web Site: http://www.mercia.com ================================================================= 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
|
|