1 ///////////////////////////////////////
\r
4 #include "SimpleApp.h"
\r
5 #include "resource.h"
\r
8 INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR, int)
\r
10 TCHAR szBuf[MAX_STRING_SIZE];
\r
11 ::LoadString(hInstance, IDW_MAIN, szBuf, MAX_STRING_SIZE -1);
\r
12 HWND hWnd = FindWindow(szBuf, NULL);
\r
14 // If application is already running, restore it and quit
\r
17 SetForegroundWindow ((HWND)(((DWORD)hWnd) | 0x01));
\r
18 TRACE(_T("Application Already running"));
\r
22 //Start the framework
\r
25 //Process the window messages
\r