codeptr will work for functions, subs and labels which have actual "bodies" in your code - procedures in a dll are not accessible.
it's true that user32.dll is mapped in your process space - however i can't, offhand, think of any simple way to access the mapped dll without having to consider stuff like readprocessmemory and such which would significantly increase the complexity of the code and would offset any negligible advantage you might get by not calling loadlibrary, etc
a quick search on the pb site did indeed reveal some code by hutch at
as they say in french "qui cherche trouve" (he who seeks findeth)

florent
[this message has been edited by florent heyworth (edited may 26, 2000).]
Leave a comment: