VirtualBox

source: vbox/trunk/src/VBox/Installer/win/AutoStartMenu/AutoStartMenu.cpp@ 31659

Last change on this file since 31659 was 31659, checked in by vboxsync, 14 years ago

export Windows installer to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1
2#include <windows.h>
3#include "HTMLWindow.h"
4
5int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE unused__, LPSTR lpszCmdLine, int nCmdShow)
6{
7 TCHAR szCurDir [_MAX_PATH+1] ={ 0};
8 TCHAR szFile [_MAX_PATH+1] ={ 0};
9 GetCurrentDirectory( _MAX_PATH, szCurDir);
10
11 strcat (szFile, szCurDir);
12
13 if ((szCurDir[strlen(szFile)-1] != '\\') &&
14 (szCurDir[strlen(szFile)-1] != '/'))
15 {
16 strcat (szFile, "\\");
17 }
18
19 strcat (szFile, "Menu\\index.html");
20
21 HTMLWindow* pWindow = new HTMLWindow(szFile, "Sun VirtualBox", hInstance, true);
22 if (NULL == pWindow)
23 return 1;
24
25 MSG msg;
26 while (GetMessage(&msg, 0, 0, 0))
27 {
28 TranslateMessage(&msg);
29 if (msg.message >= WM_KEYFIRST &&
30 msg.message <= WM_KEYLAST)
31 {
32 ::SendMessage(pWindow->hwnd_, msg.message, msg.wParam, msg.lParam);
33 }
34
35 if (msg.message==WM_QUIT)
36 break;
37
38 DispatchMessage(&msg);
39 }
40
41 delete pWindow;
42 pWindow = NULL;
43
44 return 0;
45}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette