VirtualBox

Changeset 96600 in vbox


Ignore:
Timestamp:
Sep 5, 2022 2:06:54 AM (2 years ago)
Author:
vboxsync
Message:

Add/NT/VBoxTray: Some minor cleanups, no actual code changes.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

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

    r96451 r96600  
    245245
    246246                /* GetLastInputInfo only is available starting at Windows 2000 -- might fail. */
    247                 g_pfnGetLastInputInfo = (PFNGETLASTINPUTINFO)
    248                     RTLdrGetSystemSymbol("User32.dll", "GetLastInputInfo");
     247                g_pfnGetLastInputInfo = (PFNGETLASTINPUTINFO)RTLdrGetSystemSymbol("User32.dll", "GetLastInputInfo");
    249248
    250249                LogRelFunc(("Local IPC server now running at \"%s\"\n", szPipeName));
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r96407 r96600  
    6767
    6868
     69/*********************************************************************************************************************************
     70*   Structures and Typedefs                                                                                                      *
     71*********************************************************************************************************************************/
    6972typedef struct _VBOXLACONTEXT
    7073{
     
    115118
    116119
     120/*********************************************************************************************************************************
     121*   Global Variables                                                                                                             *
     122*********************************************************************************************************************************/
    117123static VBOXLACONTEXT g_Ctx = { 0 };
    118124
    119 static const char *g_pszPropActiveClient = "/VirtualBox/HostInfo/VRDP/ActiveClient";
    120 
    121 static const char *g_pszPropAttachTemplate = "/VirtualBox/HostInfo/VRDP/Client/%u/Attach";
    122 
    123 static const char *g_pszVolatileEnvironment = "Volatile Environment";
    124 
    125 static const WCHAR *g_pwszClientName = L"CLIENTNAME";
    126 
    127 static const WCHAR *g_pwszUTCINFOClientInfo[] = {
    128                                                   L"UTCINFO_CLIENTNAME",
    129                                                   L"UTCINFO_CLIENTIPA",
    130                                                   L"UTCINFO_CLIENTLOCATION",
    131                                                   L"UTCINFO_CLIENTOTHERINFO"
    132                                                 };
    133 
    134 static const char *g_pszPropInfoTemplates[] = {
    135                                                 "/VirtualBox/HostInfo/VRDP/Client/%u/Name",
    136                                                 "/VirtualBox/HostInfo/VRDP/Client/%u/IPAddr",
    137                                                 "/VirtualBox/HostInfo/VRDP/Client/%u/Location",
    138                                                 "/VirtualBox/HostInfo/VRDP/Client/%u/OtherInfo"
    139                                               };
     125static const char * const g_pszPropActiveClient = "/VirtualBox/HostInfo/VRDP/ActiveClient";
     126
     127static const char * const g_pszPropAttachTemplate = "/VirtualBox/HostInfo/VRDP/Client/%u/Attach";
     128
     129static const char * const g_pszVolatileEnvironment = "Volatile Environment";
     130
     131static const WCHAR *const g_pwszClientName = L"CLIENTNAME";
     132
     133static const WCHAR * const g_pwszUTCINFOClientInfo[] =
     134{
     135    L"UTCINFO_CLIENTNAME",
     136    L"UTCINFO_CLIENTIPA",
     137    L"UTCINFO_CLIENTLOCATION",
     138    L"UTCINFO_CLIENTOTHERINFO"
     139};
     140
     141static const char * const g_pszPropInfoTemplates[] =
     142{
     143    "/VirtualBox/HostInfo/VRDP/Client/%u/Name",
     144    "/VirtualBox/HostInfo/VRDP/Client/%u/IPAddr",
     145    "/VirtualBox/HostInfo/VRDP/Client/%u/Location",
     146    "/VirtualBox/HostInfo/VRDP/Client/%u/OtherInfo"
     147};
    140148
    141149#ifdef RT_ARCH_AMD64
    142 const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions";
    143 const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions";
     150static const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions";
     151static const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions";
    144152#else
    145 const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions";
    146 const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions";
     153static const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions";
     154static const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions";
    147155#endif /* !RT_ARCH_AMD64 */
    148156
    149 const char g_szCommandPrefix[] = "Command";
     157static const char g_szCommandPrefix[] = "Command";
     158
    150159
    151160static BOOL laGetRegistryDWORD(WCHAR *pwszRegKey, WCHAR *pwszName, DWORD *pdwValue)
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