Changeset 106411 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp
- Timestamp:
- Oct 17, 2024 7:44:43 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp
r106061 r106411 59 59 { 60 60 /** Pointer to the service environment. */ 61 const VBOX SERVICEENV *pEnv;61 const VBOXTRAYSVCENV *pEnv; 62 62 /** Handle for the local IPC server. */ 63 63 RTLOCALIPCSERVER hServer; … … 170 170 * Showing the balloon tooltip is not critical. 171 171 */ 172 int rc2 = hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON,172 VBoxTrayHlpShowBalloonTipEx(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 173 173 pszMsg, pszTitle, Payload.s.cMsTimeout, Payload.s.uType); 174 LogFlowFunc(("Showing \"%s\" - \"%s\" (type %RU32, %RU32ms), rc=%Rrc\n",175 pszTitle, pszMsg, Payload.s.cMsTimeout, Payload.s.uType, rc2));176 RT_NOREF_PV(rc2);177 174 178 175 return VINF_SUCCESS; … … 207 204 208 205 /** 209 * Initializes the IPC communication. 210 * 211 * @return IPRT status code. 212 * @param pEnv The IPC service's environment. 213 * @param ppInstance The instance pointer which refers to this object. 214 */ 215 DECLCALLBACK(int) VBoxIPCInit(const PVBOXSERVICEENV pEnv, void **ppInstance) 206 * @interface_method_impl{VBOXSERVICEDESC,pfnPreInit} 207 */ 208 static DECLCALLBACK(int) vbtrIPCPreInit(void) 209 { 210 return VINF_SUCCESS; 211 } 212 213 214 /** 215 * @interface_method_impl{VBOXSERVICEDESC,pfnOption} 216 */ 217 static DECLCALLBACK(int) vbtrIPCOption(const char **ppszShort, int argc, char **argv, int *pi) 218 { 219 RT_NOREF(ppszShort, argc, argv, pi); 220 221 return -1; 222 } 223 224 /** 225 * @interface_method_impl{VBOXSERVICEDESC,pfnInit} 226 */ 227 DECLCALLBACK(int) vbtrIPCInit(const PVBOXTRAYSVCENV pEnv, void **ppInstance) 216 228 { 217 229 AssertPtrReturn(pEnv, VERR_INVALID_POINTER); … … 260 272 } 261 273 274 /** 275 * @interface_method_impl{VBOXSERVICEDESC,pfnStop} 276 */ 262 277 DECLCALLBACK(void) VBoxIPCStop(void *pInstance) 263 278 { … … 298 313 } 299 314 300 DECLCALLBACK(void) VBoxIPCDestroy(void *pInstance) 315 /** 316 * @interface_method_impl{VBOXSERVICEDESC,pfnDestroy} 317 */ 318 DECLCALLBACK(void) vbtrIPCDestroy(void *pInstance) 301 319 { 302 320 AssertPtrReturnVoid(pInstance); … … 552 570 * requests 553 571 */ 554 DECLCALLBACK(int) VBoxIPCWorker(void *pInstance, bool volatile *pfShutdown)572 DECLCALLBACK(int) vbtrIPCWorker(void *pInstance, bool volatile *pfShutdown) 555 573 { 556 574 AssertPtr(pInstance); … … 606 624 * The service description. 607 625 */ 608 VBOX SERVICEDESC g_SvcDescIPC =626 VBOXTRAYSVCDESC g_SvcDescIPC = 609 627 { 610 628 /* pszName. */ … … 612 630 /* pszDescription. */ 613 631 "Inter-Process Communication", 632 /* pszUsage. */ 633 NULL, 634 /* pszOptions. */ 635 NULL, 614 636 /* methods */ 615 VBoxIPCInit, 616 VBoxIPCWorker, 637 vbtrIPCPreInit, 638 vbtrIPCOption, 639 vbtrIPCInit, 640 vbtrIPCWorker, 617 641 NULL /* pfnStop */, 618 VBoxIPCDestroy642 vbtrIPCDestroy 619 643 }; 620 644
Note:
See TracChangeset
for help on using the changeset viewer.