Changeset 19327 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- May 4, 2009 2:54:21 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46804
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk
r19321 r19327 32 32 VBoxService_TEMPLATE = VBOXGUESTR3EXE 33 33 VBoxService_DEFS = VBOXSERVICE_TIMESYNC 34 VBoxService_DEFS.win += _WIN32_WINNT=0x0501 34 VBoxService_DEFS.win += _WIN32_WINNT=0x0501 _UNICODE UNICODE 35 35 VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD 36 36 ifdef VBOX_WITH_GUEST_PROPS … … 42 42 VBoxService_SOURCES.win = \ 43 43 VBoxService-win.cpp \ 44 VBoxServiceVMInfo.cpp 44 VBoxServiceVMInfo.cpp \ 45 VBoxServiceVMInfo-win.cpp 45 46 VBoxService_SOURCES.os2 = \ 46 47 VBoxService-os2.def \ … … 50 51 $(VBOX_LIB_VBGL_R3) \ 51 52 $(VBOX_LIB_IPRT_GUEST_R3) 53 ifdef VBOX_WITH_GUEST_PROPS 54 VBoxService_LIBS.win += \ 55 Secur32.lib \ 56 WtsApi32.lib \ 57 Psapi.lib 58 endif 52 59 53 60 include $(KBUILD_PATH)/subfooter.kmk -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r19321 r19327 28 28 # include <process.h> /**@todo what's this here for? */ 29 29 #endif 30 31 /** @todo just move this into the windows specific code, it's not needed32 * here. */33 /** The service name. */34 #define VBOXSERVICE_NAME "VBoxService"35 /** The friendly service name. */36 #define VBOXSERVICE_FRIENDLY_NAME "VBoxService"37 30 38 31 /** … … 98 91 typedef VBOXSERVICE const *PCVBOXSERVICE; 99 92 93 #ifdef RT_OS_WINDOWS 94 /** The service name (needed for mutex creation on Windows). */ 95 #define VBOXSERVICE_NAME L"VBoxService" 96 /** The friendly service name. */ 97 #define VBOXSERVICE_FRIENDLY_NAME L"VBoxService" 98 /** The following constant may be defined by including NtStatus.h. */ 99 #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) 100 /** Structure for storing the looked up user information. */ 101 typedef struct 102 { 103 TCHAR szUser [_MAX_PATH]; 104 TCHAR szAuthenticationPackage [_MAX_PATH]; 105 TCHAR szLogonDomain [_MAX_PATH]; 106 } VBOXSERVICEVMINFOUSER; 107 /** Function prototypes for dynamic loading. */ 108 typedef DWORD (WINAPI* fnWTSGetActiveConsoleSessionId)(); 109 #endif 100 110 101 111 __BEGIN_DECLS … … 104 114 extern int g_cVerbosity; 105 115 extern uint32_t g_DefaultInterval; 106 /** Windows SCM stuff.107 * @todo document each of them individually, this comment only documents108 * g_vboxServiceStatusCode on windows. On the other platforms it will be109 * dangling.110 * @todo all this should be moved to -win.cpp and exposed via functions. */111 #ifdef RT_OS_WINDOWS112 extern DWORD g_rcWinService;113 extern SERVICE_STATUS_HANDLE g_hWinServiceStatus;114 extern SERVICE_TABLE_ENTRY const g_aServiceTable[]; /** @todo generate on the fly, see comment in main() from the enabled sub services. */115 #endif116 116 117 117 extern int VBoxServiceSyntax(const char *pszFormat, ...); … … 122 122 extern int VBoxServiceStartServices(unsigned iMain); 123 123 extern int VBoxServiceStopServices(void); 124 124 125 #ifdef RT_OS_WINDOWS 125 extern int VBoxServiceWinInstall(void);126 extern int VBoxServiceWinUninstall(void);127 #endif128 129 126 extern VBOXSERVICE g_TimeSync; 130 127 extern VBOXSERVICE g_Clipboard; … … 132 129 extern VBOXSERVICE g_VMInfo; 133 130 131 extern DWORD g_rcWinService; 132 extern SERVICE_STATUS_HANDLE g_hWinServiceStatus; 133 extern SERVICE_TABLE_ENTRY const g_aServiceTable[]; /** @todo generate on the fly, see comment in main() from the enabled sub services. */ 134 135 extern int VBoxServiceWinInstall(void); 136 extern int VBoxServiceWinUninstall(void); 137 /** Detects wheter a user is logged on based on the 138 * enumerated processes. */ 139 extern BOOL VboxServiceVMInfoWinIsLoggedIn(VBOXSERVICEVMINFOUSER* a_pUserInfo, 140 PLUID a_pSession, 141 PLUID a_pLuid, 142 DWORD a_dwNumOfProcLUIDs); 143 /** Gets logon user IDs from enumerated processes. */ 144 extern DWORD VboxServiceVMInfoWinGetLUIDsFromProcesses(PLUID *ppLuid); 145 #endif 146 134 147 __END_DECLS 135 148
Note:
See TracChangeset
for help on using the changeset viewer.