VirtualBox

Changeset 37422 in vbox


Ignore:
Timestamp:
Jun 12, 2011 6:31:16 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72221
Message:

VBoxTray.cpp: Tabs and some minor cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r36371 r37422  
     1/* $Id$ */
    12/** @file
    23 * VBoxTray - Guest Additions Tray Application
     
    4142
    4243/*******************************************************************************
     44*   Internal Functions                                                         *
     45*******************************************************************************/
     46static int vboxTrayCreateTrayIcon(void);
     47static LRESULT CALLBACK vboxToolWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
     48
     49/* Global message handler prototypes. */
     50static int vboxTrayGlMsgTaskbarCreated(WPARAM lParam, LPARAM wParam);
     51/*static int vboxTrayGlMsgShowBalloonMsg(WPARAM lParam, LPARAM wParam);*/
     52
     53
     54/*******************************************************************************
    4355*   Global Variables                                                           *
    4456*******************************************************************************/
     
    5365DWORD                 gMajorVersion;
    5466
    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 
    6467
    6568/* The service table. */
     
    332335}
    333336
    334 static int vboxTrayOpenBaseDriver()
     337static int vboxTrayOpenBaseDriver(void)
    335338{
    336339    /* Open VBox guest driver. */
     
    351354}
    352355
    353 static void vboxTrayCloseBaseDriver()
     356static void vboxTrayCloseBaseDriver(void)
    354357{
    355358    if (ghVBoxDriver)
     
    360363}
    361364
    362 static void vboxTrayDestroyToolWindow()
     365static void vboxTrayDestroyToolWindow(void)
    363366{
    364367    if (ghwndToolWindow)
     
    374377}
    375378
    376 static int vboxTrayCreateToolWindow()
     379static int vboxTrayCreateToolWindow(void)
    377380{
    378381    DWORD dwErr = ERROR_SUCCESS;
     
    381384    WNDCLASS windowClass = {0};
    382385    windowClass.style         = CS_NOCLOSE;
    383     windowClass.lpfnWndProc   = (WNDPROC)VBoxToolWndProc;
     386    windowClass.lpfnWndProc   = (WNDPROC)vboxToolWndProc;
    384387    windowClass.hInstance     = ghInstance;
    385388    windowClass.hCursor       = LoadCursor(NULL, IDC_ARROW);
     
    422425}
    423426
    424 static int vboxTraySetupSeamless()
     427static int vboxTraySetupSeamless(void)
    425428{
    426429    OSVERSIONINFO info;
     
    519522static void vboxTrayShutdownSeamless(void)
    520523{
    521         if (ghSeamlessNotifyEvent)
    522         {
     524    if (ghSeamlessNotifyEvent)
     525    {
    523526        CloseHandle(ghSeamlessNotifyEvent);
    524             ghSeamlessNotifyEvent = NULL;
    525         }
     527        ghSeamlessNotifyEvent = NULL;
     528    }
    526529}
    527530
     
    731734 * Window procedure for our tool window
    732735 */
    733 LRESULT CALLBACK VBoxToolWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
     736static LRESULT CALLBACK vboxToolWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    734737{
    735738    switch (uMsg)
     
    815818    return DefWindowProc(hWnd, uMsg, wParam, lParam);
    816819}
     820
Note: See TracChangeset for help on using the changeset viewer.

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