Hi,
even if it sounds like a joke, I mean it serious.

Ok, for sure I know that this HINSTANCE is passed via arguments to WinMain.

But what I want to do is, to write some C++-classes that need a HINSTANCE to to program they are used in, and for some reasons, I don't want to pass itfrom WinMain.

So is there a possibility to get a HINSTANCE of the current module from anywhere inside the code ?

thanks for your help

highhead