VBoxServiceInternal.h revision b4c48063a7f8ecdd0646015b3bd32e335015ef18
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * VBoxService - Guest Additions Services.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Copyright (C) 2007-2009 Sun Microsystems, Inc.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * available from http://www.virtualbox.org. This file is free software;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * you can redistribute it and/or modify it under the terms of the GNU
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * General Public License (GPL) as published by the Free Software
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * additional information or have any questions.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# include <tchar.h> /**@todo just drop this, this will be compiled as UTF-8/ANSI. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# include <process.h> /**@todo what's this here for? */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** @todo just move this into the windows specific code, it's not needed
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** The service name. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** The friendly service name. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * A service descriptor.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynctypedef struct
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync /** The short service name. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync const char *pszName;
const char *pszDescription;
const char *pszUsage;
const char *pszOptions;
} VBOXSERVICE;
extern char *g_pszProgName;
extern int g_cVerbosity;
* @todo all this should be moved to -win.cpp and exposed via functions. */
#ifdef RT_OS_WINDOWS
extern SERVICE_TABLE_ENTRY const g_aServiceTable[]; /** @todo generate on the fly, see comment in main() from the enabled sub services. */
extern int VBoxServiceArgUInt32(int argc, char **argv, const char *psz, int *pi, uint32_t *pu32, uint32_t u32Min, uint32_t u32Max);
extern unsigned VBoxServiceGetStartedServices(void);
extern int VBoxServiceStopServices(void);
#ifdef RT_OS_WINDOWS
extern int VBoxServiceWinInstall(void);
extern int VBoxServiceWinUninstall(void);