Changeset 23836 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Oct 16, 2009 10:36:52 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHostVersion.cpp
r23835 r23836 30 30 int VBoxCheckHostVersion () 31 31 { 32 33 34 35 36 37 38 39 32 int rc; 33 char *pszHostVersion; 34 char *pszGuestVersion; 35 rc = VbglR3HostVersionCheckForUpdate(&pszHostVersion, &pszGuestVersion); 36 if (RT_SUCCESS(rc)) 37 { 38 char szMsg[256]; /* Sizes according to MSDN. */ 39 char szTitle[64]; 40 40 41 42 43 44 45 41 /** @todo add some translation macros here */ 42 _snprintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!"); 43 _snprintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. " 44 "We recommend updating to the latest version (%s) by choosing the " 45 "install option from the Devices menu.", pszGuestVersion, pszHostVersion); 46 46 47 47 rc = showBalloonTip(gInstance, gToolWindow, ID_TRAYICON, szMsg, szTitle, 5000, 0); 48 48 if (RT_FAILURE(rc)) 49 49 Log(("VBoxTray: Could not show version notifier balloon tooltip! rc = %d\n", rc)); 50 50 51 52 53 51 VbglR3GuestPropReadValueFree(pszHostVersion); 52 VbglR3GuestPropReadValueFree(pszGuestVersion); 53 } 54 54 55 55 /* If we didn't have to check for the host version then this is not an error */
Note:
See TracChangeset
for help on using the changeset viewer.