Changeset 96600 in vbox
- Timestamp:
- Sep 5, 2022 2:06:54 AM (2 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp
r96451 r96600 245 245 246 246 /* 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"); 249 248 250 249 LogRelFunc(("Local IPC server now running at \"%s\"\n", szPipeName)); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp
r96407 r96600 67 67 68 68 69 /********************************************************************************************************************************* 70 * Structures and Typedefs * 71 *********************************************************************************************************************************/ 69 72 typedef struct _VBOXLACONTEXT 70 73 { … … 115 118 116 119 120 /********************************************************************************************************************************* 121 * Global Variables * 122 *********************************************************************************************************************************/ 117 123 static VBOXLACONTEXT g_Ctx = { 0 }; 118 124 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 }; 125 static const char * const g_pszPropActiveClient = "/VirtualBox/HostInfo/VRDP/ActiveClient"; 126 127 static const char * const g_pszPropAttachTemplate = "/VirtualBox/HostInfo/VRDP/Client/%u/Attach"; 128 129 static const char * const g_pszVolatileEnvironment = "Volatile Environment"; 130 131 static const WCHAR *const g_pwszClientName = L"CLIENTNAME"; 132 133 static const WCHAR * const g_pwszUTCINFOClientInfo[] = 134 { 135 L"UTCINFO_CLIENTNAME", 136 L"UTCINFO_CLIENTIPA", 137 L"UTCINFO_CLIENTLOCATION", 138 L"UTCINFO_CLIENTOTHERINFO" 139 }; 140 141 static 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 }; 140 148 141 149 #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";150 static const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions"; 151 static const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Wow6432Node\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions"; 144 152 #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";153 static const WCHAR *g_pwszRegKeyDisconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\DisconnectActions"; 154 static const WCHAR *g_pwszRegKeyReconnectActions = L"Software\\Oracle\\Sun Ray\\ClientInfoAgent\\ReconnectActions"; 147 155 #endif /* !RT_ARCH_AMD64 */ 148 156 149 const char g_szCommandPrefix[] = "Command"; 157 static const char g_szCommandPrefix[] = "Command"; 158 150 159 151 160 static BOOL laGetRegistryDWORD(WCHAR *pwszRegKey, WCHAR *pwszName, DWORD *pdwValue)
Note:
See TracChangeset
for help on using the changeset viewer.