Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
                   LPSTR lpCmdLine, int nCmdShow){  }
What is hInstance and hPrevInstance used for? It seems like it
would be like checking for App.PrevInstance but I don't think so.

I would use FindWindow to see if the app is running, but I am
just using CreateDialog and a resource file. It just seems like a
second hand way to check for the #32770 (Dialog) class and
window title.

Is there another way?