static D3DPRESENT_PARAMETERS g_PresentationParameters;
-int WINAPI
-WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow)
+int
+main(int argc, char *argv[])
{
HRESULT hr;
+ HINSTANCE hInstance = GetModuleHandle(NULL);
+
WNDCLASSEX wc = {
sizeof(WNDCLASSEX),
CS_CLASSDC,