Changeset 71716 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Apr 6, 2018 6:16:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r71317 r71716 516 516 void VirtualBoxClassFactory::i_finishVBoxSvc() 517 517 { 518 LogRelFunc(("Finish work of VBoxSV cand VBoxSDS\n"));518 LogRelFunc(("Finish work of VBoxSVC and VBoxSDS\n")); 519 519 if (m_ptrVirtualBoxSDS.isNotNull()) 520 520 { … … 787 787 788 788 789 int SetServiceEnvFlag() 790 { 791 int rc = VINF_SUCCESS; 792 if (!SetEnvironmentVariable(L"VBOX_SERVICE_PROCESS", L"")) 793 { 794 rc = RTErrConvertFromWin32(GetLastError()); 795 LogRel(("Error: cannot set service environment flag: %Rrs\n", rc)); 796 } 797 return rc; 789 /** Special export that make VBoxProxyStub not register this process as one that 790 * VBoxSDS should be watching. 791 */ 792 extern "C" DECLEXPORT(void) VBOXCALL Is_VirtualBox_service_process_like_VBoxSDS_And_VBoxSDS(void) 793 { 794 /* never called, just need to be here */ 798 795 } 799 796 … … 834 831 */ 835 832 RTR3InitExe(argc, &argv, 0); 836 837 SetServiceEnvFlag();838 833 839 834 static const RTGETOPTDEF s_aOptions[] =
Note:
See TracChangeset
for help on using the changeset viewer.