On 7/31/05, Felix Nawothnig felix.nawothnig@t-online.de wrote:
James Hawkins wrote:
Maybe that only returns the hinstance of the process calling the module, and not the hinstance of the module itself.
Ofcourse it doesn't do that, how should it know from what module the call came from?
I didn't think so, so shouldn't GetModuleHandle(NULL) work? It leads me to believe there's a bug in our GetModuleHandle.
Eh? Ofcourse GetModuleHandle(NULL) works - it retrieves a handle to the calling process.
Ah I misunderstood which case you said was correct before.