HWND sMsgWindow = NULL;
WNDCLASSEX theWndClass;
theWndClass.cbSize = sizeof(theWndClass);
theWndClass.style = 0;
theWndClass.lpfnWndProc = &select_wndproc;
theWndClass.cbClsExtra = 0;
theWndClass.cbWndExtra = 0;
theWndClass.hInstance = NULL;
theWndClass.hIcon = NULL;
theWndClass.hCursor = NULL;
theWndClass.hbrBackground = NULL;
theWndClass.lpszMenuName = NULL;
theWndClass.lpszClassName = "DarwinStreamingServerWindow";
theWndClass.hIconSm = NULL;
ATOM theWndAtom = ::RegisterClassEx(&theWndClass);
Assert(theWndAtom != NULL);
if (theWndAtom == NULL)
::exit(-1); // Poor error recovery, but this should never happen.
sMsgWindow = ::CreateWindow( "VideoDownloadMsgServerWindow", // Window class name
"VideoDownloadMsgServerWindow", // Window title bar
WS_POPUP, // Window style ( a popup doesn't need a parent )
0, // x pos
0, // y pos
CW_USEDEFAULT, // default width
CW_USEDEFAULT, // default height
NULL, // No parent
NULL, // No menu handle
NULL, // Ignored on WinNT
NULL); // data for message proc. Who cares?
Assert(sMsgWindow != NULL);
if (sMsgWindow == NULL)
::exit(-1);
WNDCLASSEX theWndClass;
theWndClass.cbSize = sizeof(theWndClass);
theWndClass.style = 0;
theWndClass.lpfnWndProc = &select_wndproc;
theWndClass.cbClsExtra = 0;
theWndClass.cbWndExtra = 0;
theWndClass.hInstance = NULL;
theWndClass.hIcon = NULL;
theWndClass.hCursor = NULL;
theWndClass.hbrBackground = NULL;
theWndClass.lpszMenuName = NULL;
theWndClass.lpszClassName = "DarwinStreamingServerWindow";
theWndClass.hIconSm = NULL;
ATOM theWndAtom = ::RegisterClassEx(&theWndClass);
Assert(theWndAtom != NULL);
if (theWndAtom == NULL)
::exit(-1); // Poor error recovery, but this should never happen.
sMsgWindow = ::CreateWindow( "VideoDownloadMsgServerWindow", // Window class name
"VideoDownloadMsgServerWindow", // Window title bar
WS_POPUP, // Window style ( a popup doesn't need a parent )
0, // x pos
0, // y pos
CW_USEDEFAULT, // default width
CW_USEDEFAULT, // default height
NULL, // No parent
NULL, // No menu handle
NULL, // Ignored on WinNT
NULL); // data for message proc. Who cares?
Assert(sMsgWindow != NULL);
if (sMsgWindow == NULL)
::exit(-1);