I searched a little bit on StackOverflow and Google but couldn\'t get the idea. I want to start my application with this type of user programming:
int main()
GetModuleHandle(NULL) will give you hInstance. hPrevInstance is always NULL.
hInstance
hPrevInstance
NULL