I know that when you are not working with any DLL's that GetModuleHandle(0) is a perfect way to retrive hInstance and not have to make it global. However, in the project I'm working on now I am using DLL's and I'm wondering if it is okay to use GetModuleHandle(0) here and if not what is another possibility?