Changeset 37422 in vbox
- Timestamp:
- Jun 12, 2011 6:31:16 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72221
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r36371 r37422 1 /* $Id$ */ 1 2 /** @file 2 3 * VBoxTray - Guest Additions Tray Application … … 41 42 42 43 /******************************************************************************* 44 * Internal Functions * 45 *******************************************************************************/ 46 static int vboxTrayCreateTrayIcon(void); 47 static LRESULT CALLBACK vboxToolWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); 48 49 /* Global message handler prototypes. */ 50 static int vboxTrayGlMsgTaskbarCreated(WPARAM lParam, LPARAM wParam); 51 /*static int vboxTrayGlMsgShowBalloonMsg(WPARAM lParam, LPARAM wParam);*/ 52 53 54 /******************************************************************************* 43 55 * Global Variables * 44 56 *******************************************************************************/ … … 53 65 DWORD gMajorVersion; 54 66 55 /* Global message handler prototypes. */56 int vboxTrayGlMsgTaskbarCreated(WPARAM lParam, LPARAM wParam);57 int vboxTrayGlMsgShowBalloonMsg(WPARAM lParam, LPARAM wParam);58 59 /* Prototypes */60 int vboxTrayCreateTrayIcon(void);61 VOID DisplayChangeThread(void *dummy);62 LRESULT CALLBACK VBoxToolWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);63 64 67 65 68 /* The service table. */ … … 332 335 } 333 336 334 static int vboxTrayOpenBaseDriver( )337 static int vboxTrayOpenBaseDriver(void) 335 338 { 336 339 /* Open VBox guest driver. */ … … 351 354 } 352 355 353 static void vboxTrayCloseBaseDriver( )356 static void vboxTrayCloseBaseDriver(void) 354 357 { 355 358 if (ghVBoxDriver) … … 360 363 } 361 364 362 static void vboxTrayDestroyToolWindow( )365 static void vboxTrayDestroyToolWindow(void) 363 366 { 364 367 if (ghwndToolWindow) … … 374 377 } 375 378 376 static int vboxTrayCreateToolWindow( )379 static int vboxTrayCreateToolWindow(void) 377 380 { 378 381 DWORD dwErr = ERROR_SUCCESS; … … 381 384 WNDCLASS windowClass = {0}; 382 385 windowClass.style = CS_NOCLOSE; 383 windowClass.lpfnWndProc = (WNDPROC) VBoxToolWndProc;386 windowClass.lpfnWndProc = (WNDPROC)vboxToolWndProc; 384 387 windowClass.hInstance = ghInstance; 385 388 windowClass.hCursor = LoadCursor(NULL, IDC_ARROW); … … 422 425 } 423 426 424 static int vboxTraySetupSeamless( )427 static int vboxTraySetupSeamless(void) 425 428 { 426 429 OSVERSIONINFO info; … … 519 522 static void vboxTrayShutdownSeamless(void) 520 523 { 521 522 524 if (ghSeamlessNotifyEvent) 525 { 523 526 CloseHandle(ghSeamlessNotifyEvent); 524 525 527 ghSeamlessNotifyEvent = NULL; 528 } 526 529 } 527 530 … … 731 734 * Window procedure for our tool window 732 735 */ 733 LRESULT CALLBACK VBoxToolWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)736 static LRESULT CALLBACK vboxToolWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 734 737 { 735 738 switch (uMsg) … … 815 818 return DefWindowProc(hWnd, uMsg, wParam, lParam); 816 819 } 820
Note:
See TracChangeset
for help on using the changeset viewer.