2014-08-11 10:06:04 +00:00
|
|
|
/*
|
2014-10-24 01:46:35 +00:00
|
|
|
* Copyright (C) 2014, Taowei Luo (uaedante@gmail.com)
|
|
|
|
* Copyright (C) 2008-2009 Sun Microsystems, Inc.
|
2014-08-11 10:06:04 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VBOX_COMMON_H
|
|
|
|
# define VBOX_COMMON_H
|
|
|
|
|
|
|
|
# ifdef ___VirtualBox_CXPCOM_h
|
|
|
|
# error this file should not be included after vbox_CAPI_v*.h
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# include "internal.h"
|
|
|
|
# include <stddef.h>
|
|
|
|
# include "wchar.h"
|
|
|
|
|
|
|
|
/* This file extracts some symbols defined in
|
|
|
|
* vbox_CAPI_v*.h. It tells the vbox_common.c
|
|
|
|
* how to treat with this symbols. This file
|
|
|
|
* can't be included with files such as
|
2015-03-19 15:53:00 +00:00
|
|
|
* vbox_CAPI_v*.h, or it would cause multiple
|
2014-08-11 10:06:04 +00:00
|
|
|
* definitions.
|
|
|
|
*
|
|
|
|
* You can see the more informations in vbox_api.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Copied definitions from vbox_CAPI_*.h.
|
|
|
|
* We must MAKE SURE these codes are compatible. */
|
|
|
|
|
|
|
|
typedef unsigned char PRUint8;
|
|
|
|
# if (defined(HPUX) && defined(__cplusplus) \
|
|
|
|
&& !defined(__GNUC__) && __cplusplus < 199707L) \
|
|
|
|
|| (defined(SCO) && defined(__cplusplus) \
|
|
|
|
&& !defined(__GNUC__) && __cplusplus == 1L)
|
|
|
|
typedef char PRInt8;
|
|
|
|
# else
|
|
|
|
typedef signed char PRInt8;
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# define PR_INT8_MAX 127
|
|
|
|
# define PR_INT8_MIN (-128)
|
|
|
|
# define PR_UINT8_MAX 255U
|
|
|
|
|
|
|
|
typedef unsigned short PRUint16;
|
|
|
|
typedef short PRInt16;
|
|
|
|
|
|
|
|
# define PR_INT16_MAX 32767
|
|
|
|
# define PR_INT16_MIN (-32768)
|
|
|
|
# define PR_UINT16_MAX 65535U
|
|
|
|
|
|
|
|
typedef unsigned int PRUint32;
|
|
|
|
typedef int PRInt32;
|
2016-02-09 11:38:36 +00:00
|
|
|
# define PR_INT32(x) x
|
2014-08-11 10:06:04 +00:00
|
|
|
# define PR_UINT32(x) x ## U
|
|
|
|
|
|
|
|
# define PR_INT32_MAX PR_INT32(2147483647)
|
|
|
|
# define PR_INT32_MIN (-PR_INT32_MAX - 1)
|
|
|
|
# define PR_UINT32_MAX PR_UINT32(4294967295)
|
|
|
|
|
|
|
|
typedef long PRInt64;
|
|
|
|
typedef unsigned long PRUint64;
|
|
|
|
typedef int PRIntn;
|
|
|
|
typedef unsigned int PRUintn;
|
|
|
|
|
2016-02-09 11:38:36 +00:00
|
|
|
typedef double PRFloat64;
|
2014-08-11 10:06:04 +00:00
|
|
|
typedef size_t PRSize;
|
|
|
|
|
|
|
|
typedef ptrdiff_t PRPtrdiff;
|
|
|
|
|
|
|
|
typedef unsigned long PRUptrdiff;
|
|
|
|
|
|
|
|
typedef PRIntn PRBool;
|
|
|
|
|
|
|
|
# define PR_TRUE 1
|
|
|
|
# define PR_FALSE 0
|
|
|
|
|
|
|
|
typedef PRUint8 PRPackedBool;
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Status code used by some routines that have a single point of failure or
|
|
|
|
** special status return.
|
|
|
|
*/
|
|
|
|
typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
|
|
|
|
|
|
|
|
# ifndef __PRUNICHAR__
|
|
|
|
# define __PRUNICHAR__
|
|
|
|
# if defined(WIN32) || defined(XP_MAC)
|
|
|
|
typedef wchar_t PRUnichar;
|
|
|
|
# else
|
|
|
|
typedef PRUint16 PRUnichar;
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
|
|
|
typedef long PRWord;
|
|
|
|
typedef unsigned long PRUword;
|
|
|
|
|
|
|
|
# define nsnull 0
|
|
|
|
typedef PRUint32 nsresult;
|
|
|
|
|
|
|
|
# if defined(__GNUC__) && (__GNUC__ > 2)
|
|
|
|
# define NS_LIKELY(x) (__builtin_expect((x), 1))
|
|
|
|
# define NS_UNLIKELY(x) (__builtin_expect((x), 0))
|
|
|
|
# else
|
|
|
|
# define NS_LIKELY(x) (x)
|
|
|
|
# define NS_UNLIKELY(x) (x)
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000))
|
|
|
|
# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000)))
|
|
|
|
|
2014-08-11 10:06:06 +00:00
|
|
|
/**
|
|
|
|
* An "interface id" which can be used to uniquely identify a given
|
|
|
|
* interface.
|
|
|
|
* A "unique identifier". This is modeled after OSF DCE UUIDs.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct nsID {
|
|
|
|
PRUint32 m0;
|
|
|
|
PRUint16 m1;
|
|
|
|
PRUint16 m2;
|
|
|
|
PRUint8 m3[8];
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct nsID nsID;
|
|
|
|
typedef nsID nsIID;
|
|
|
|
|
|
|
|
typedef struct _vboxArray vboxArray;
|
|
|
|
|
|
|
|
# ifdef WIN32
|
|
|
|
|
|
|
|
struct _vboxArray {
|
|
|
|
void **items;
|
|
|
|
size_t count;
|
|
|
|
void *handle;
|
|
|
|
};
|
|
|
|
# define VBOX_ARRAY_INITIALIZER { NULL, 0, NULL }
|
|
|
|
|
|
|
|
# else /* !WIN32 */
|
|
|
|
|
|
|
|
struct _vboxArray {
|
|
|
|
void **items;
|
|
|
|
size_t count;
|
|
|
|
};
|
|
|
|
# define VBOX_ARRAY_INITIALIZER { NULL, 0 }
|
|
|
|
|
|
|
|
# endif /* !WIN32 */
|
|
|
|
|
2014-08-11 10:06:19 +00:00
|
|
|
/* We make the assumption that these enum flags
|
|
|
|
* are compatible in all vbox API version.
|
|
|
|
*
|
|
|
|
* Yes it is, as it has been checked from vbox 2.2 to
|
|
|
|
* vbox 4.3.3. And this rule MAY NOT stands for new
|
|
|
|
* vbox versions.
|
|
|
|
* */
|
|
|
|
enum CPUPropertyType
|
|
|
|
{
|
|
|
|
CPUPropertyType_Null = 0,
|
|
|
|
CPUPropertyType_PAE = 1,
|
|
|
|
CPUPropertyType_Synthetic = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum AudioControllerType
|
|
|
|
{
|
|
|
|
AudioControllerType_AC97 = 0,
|
|
|
|
AudioControllerType_SB16 = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ChipsetType
|
|
|
|
{
|
|
|
|
ChipsetType_Null = 0,
|
|
|
|
ChipsetType_PIIX3 = 1,
|
|
|
|
ChipsetType_ICH9 = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum NetworkAdapterType
|
|
|
|
{
|
|
|
|
NetworkAdapterType_Null = 0,
|
|
|
|
NetworkAdapterType_Am79C970A = 1,
|
|
|
|
NetworkAdapterType_Am79C973 = 2,
|
|
|
|
NetworkAdapterType_I82540EM = 3,
|
|
|
|
NetworkAdapterType_I82543GC = 4,
|
|
|
|
NetworkAdapterType_I82545EM = 5,
|
|
|
|
NetworkAdapterType_Virtio = 6
|
|
|
|
};
|
|
|
|
|
2014-08-11 10:06:43 +00:00
|
|
|
enum NetworkAttachmentType
|
|
|
|
{
|
|
|
|
NetworkAttachmentType_Null = 0,
|
|
|
|
NetworkAttachmentType_NAT = 1,
|
|
|
|
NetworkAttachmentType_Bridged = 2,
|
|
|
|
NetworkAttachmentType_Internal = 3,
|
|
|
|
NetworkAttachmentType_HostOnly = 4
|
|
|
|
};
|
|
|
|
|
2014-08-11 10:06:19 +00:00
|
|
|
enum PortMode
|
|
|
|
{
|
|
|
|
PortMode_Disconnected = 0,
|
|
|
|
PortMode_HostPipe = 1,
|
|
|
|
PortMode_HostDevice = 2,
|
|
|
|
PortMode_RawFile = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
enum DeviceType
|
|
|
|
{
|
|
|
|
DeviceType_Null = 0,
|
|
|
|
DeviceType_Floppy = 1,
|
|
|
|
DeviceType_DVD = 2,
|
|
|
|
DeviceType_HardDisk = 3,
|
|
|
|
DeviceType_Network = 4,
|
|
|
|
DeviceType_USB = 5,
|
|
|
|
DeviceType_SharedFolder = 6
|
|
|
|
};
|
|
|
|
|
|
|
|
enum StorageBus
|
|
|
|
{
|
|
|
|
StorageBus_Null = 0,
|
|
|
|
StorageBus_IDE = 1,
|
|
|
|
StorageBus_SATA = 2,
|
|
|
|
StorageBus_SCSI = 3,
|
|
|
|
StorageBus_Floppy = 4,
|
|
|
|
StorageBus_SAS = 5
|
|
|
|
};
|
|
|
|
|
|
|
|
enum AccessMode
|
|
|
|
{
|
|
|
|
AccessMode_ReadOnly = 1,
|
|
|
|
AccessMode_ReadWrite = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum MediumType
|
|
|
|
{
|
|
|
|
MediumType_Normal = 0,
|
|
|
|
MediumType_Immutable = 1,
|
|
|
|
MediumType_Writethrough = 2,
|
|
|
|
};
|
|
|
|
|
2014-08-11 10:06:53 +00:00
|
|
|
enum CleanupMode
|
|
|
|
{
|
|
|
|
CleanupMode_UnregisterOnly = 1,
|
|
|
|
CleanupMode_DetachAllReturnNone = 2,
|
|
|
|
CleanupMode_DetachAllReturnHardDisksOnly = 3,
|
|
|
|
CleanupMode_Full = 4
|
|
|
|
};
|
|
|
|
|
|
|
|
enum MediumVariant
|
|
|
|
{
|
|
|
|
MediumVariant_Standard = 0,
|
|
|
|
MediumVariant_VmdkSplit2G = 0x01,
|
|
|
|
MediumVariant_VmdkStreamOptimized = 0x04,
|
|
|
|
MediumVariant_VmdkESX = 0x08,
|
|
|
|
MediumVariant_Fixed = 0x10000,
|
|
|
|
MediumVariant_Diff = 0x20000
|
|
|
|
};
|
|
|
|
|
2014-10-02 03:30:28 +00:00
|
|
|
enum HostNetworkInterfaceStatus
|
|
|
|
{
|
|
|
|
HostNetworkInterfaceStatus_Unknown = 0,
|
|
|
|
HostNetworkInterfaceStatus_Up = 1,
|
|
|
|
HostNetworkInterfaceStatus_Down = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum HostNetworkInterfaceType
|
|
|
|
{
|
|
|
|
HostNetworkInterfaceType_Bridged = 1,
|
|
|
|
HostNetworkInterfaceType_HostOnly = 2
|
|
|
|
};
|
|
|
|
|
vbox: Rewrite vboxStoragePoolNumOfVolumes
We use typedef IMedium IHardDisk to make IHardDisk hierachy from
IMedium (Actually it did on vbox 2.2 and 3.0's C++ API).
So when calling
VBOX_MEDIUM_FUNC_ARG*(IHardDisk, func, args)
we can directly replace it to
gVBoxAPI.UIMedium.func(IHardDisk, args)
When dealing with this two types, we get some rules from it's
hierachy relationship.
When using IHardDisk and IMedium as input, we can't transfer a
IMedium to IHardDisk. Like:
gVBoxAPI.UIHardDisk.func(IHardDisk *hardDisk, args)
Here, we can't put a *IMedium as a argument.
When using IHardDisk and IMedium as output, we can't transfer a
IHardDisk to IMedium. Like:
gVBoxAPI.UIMachine.GetMedium(IMedium **out)
Here, we can't put a **IHardDisk as a argument. If this case
do happen, we either change the API to GetHardDisk or write a
new one.
2014-10-24 01:46:39 +00:00
|
|
|
enum MediaState
|
|
|
|
{
|
|
|
|
MediaState_NotCreated = 0,
|
|
|
|
MediaState_Created = 1,
|
|
|
|
MediaState_LockedRead = 2,
|
|
|
|
MediaState_LockedWrite = 3,
|
|
|
|
MediaState_Inaccessible = 4,
|
|
|
|
MediaState_Creating = 5,
|
|
|
|
MediaState_Deleting = 6
|
|
|
|
};
|
|
|
|
|
2014-10-24 01:46:46 +00:00
|
|
|
enum HardDiskVariant
|
|
|
|
{
|
|
|
|
HardDiskVariant_Standard = 0,
|
|
|
|
HardDiskVariant_VmdkSplit2G = 0x01,
|
|
|
|
HardDiskVariant_VmdkStreamOptimized = 0x04,
|
|
|
|
HardDiskVariant_VmdkESX = 0x08,
|
|
|
|
HardDiskVariant_Fixed = 0x10000,
|
|
|
|
HardDiskVariant_Diff = 0x20000
|
|
|
|
};
|
|
|
|
|
2014-08-11 10:07:04 +00:00
|
|
|
# define VBOX_E_OBJECT_NOT_FOUND 0x80BB0001
|
|
|
|
# define VBOX_E_INVALID_VM_STATE 0x80BB0002
|
|
|
|
# define VBOX_E_VM_ERROR 0x80BB0003
|
|
|
|
# define VBOX_E_FILE_ERROR 0x80BB0004
|
|
|
|
# define VBOX_E_IPRT_ERROR 0x80BB0005
|
|
|
|
# define VBOX_E_PDM_ERROR 0x80BB0006
|
|
|
|
# define VBOX_E_INVALID_OBJECT_STATE 0x80BB0007
|
|
|
|
# define VBOX_E_HOST_ERROR 0x80BB0008
|
|
|
|
# define VBOX_E_NOT_SUPPORTED 0x80BB0009
|
|
|
|
# define VBOX_E_XML_ERROR 0x80BB000A
|
|
|
|
# define VBOX_E_INVALID_SESSION_STATE 0x80BB000B
|
|
|
|
# define VBOX_E_OBJECT_IN_USE 0x80BB000C
|
|
|
|
|
2014-08-11 10:06:04 +00:00
|
|
|
/* Simplied definitions in vbox_CAPI_*.h */
|
|
|
|
|
|
|
|
typedef void const *PCVBOXXPCOM;
|
2014-08-11 10:06:06 +00:00
|
|
|
typedef struct nsISupports nsISupports;
|
|
|
|
typedef nsISupports IVirtualBox;
|
|
|
|
typedef nsISupports ISession;
|
|
|
|
typedef nsISupports IConsole;
|
|
|
|
typedef nsISupports IProgress;
|
|
|
|
typedef nsISupports IMachine;
|
2014-08-11 10:06:12 +00:00
|
|
|
typedef nsISupports ISystemProperties;
|
2014-08-11 10:06:19 +00:00
|
|
|
typedef nsISupports IBIOSSettings;
|
|
|
|
typedef nsISupports IAudioAdapter;
|
|
|
|
typedef nsISupports INetworkAdapter;
|
|
|
|
typedef nsISupports ISerialPort;
|
|
|
|
typedef nsISupports IParallelPort;
|
2016-12-29 20:34:30 +00:00
|
|
|
typedef nsISupports IVRDEServer;
|
2014-08-11 10:06:19 +00:00
|
|
|
typedef nsISupports IUSBCommon;
|
|
|
|
typedef nsISupports IUSBDeviceFilter;
|
|
|
|
typedef nsISupports IMedium;
|
2014-08-11 10:06:42 +00:00
|
|
|
typedef nsISupports IMediumAttachment;
|
2014-08-11 10:06:19 +00:00
|
|
|
typedef nsISupports IStorageController;
|
2014-08-11 10:06:42 +00:00
|
|
|
typedef nsISupports ISharedFolder;
|
2014-08-11 10:06:52 +00:00
|
|
|
typedef nsISupports ISnapshot;
|
2014-08-11 10:07:05 +00:00
|
|
|
typedef nsISupports IDisplay;
|
2014-10-02 03:30:28 +00:00
|
|
|
typedef nsISupports IHost;
|
|
|
|
typedef nsISupports IHostNetworkInterface;
|
2014-10-02 03:30:34 +00:00
|
|
|
typedef nsISupports IDHCPServer;
|
2015-04-07 15:37:36 +00:00
|
|
|
typedef nsISupports IKeyboard;
|
2014-08-11 10:06:04 +00:00
|
|
|
|
2014-10-24 01:46:37 +00:00
|
|
|
/* Macros for all vbox drivers. */
|
|
|
|
|
|
|
|
# define RC_SUCCEEDED(rc) NS_SUCCEEDED(rc.resultCode)
|
|
|
|
# define RC_FAILED(rc) NS_FAILED(rc.resultCode)
|
|
|
|
|
|
|
|
# define VBOX_UTF16_FREE(arg) \
|
|
|
|
do { \
|
|
|
|
if (arg) { \
|
|
|
|
gVBoxAPI.UPFN.Utf16Free(data->pFuncs, arg); \
|
|
|
|
(arg) = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
# define VBOX_UTF8_FREE(arg) \
|
|
|
|
do { \
|
|
|
|
if (arg) { \
|
|
|
|
gVBoxAPI.UPFN.Utf8Free(data->pFuncs, arg); \
|
|
|
|
(arg) = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
# define VBOX_COM_UNALLOC_MEM(arg) \
|
|
|
|
do { \
|
|
|
|
if (arg) { \
|
|
|
|
gVBoxAPI.UPFN.ComUnallocMem(data->pFuncs, arg); \
|
|
|
|
(arg) = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
# define VBOX_UTF16_TO_UTF8(arg1, arg2) gVBoxAPI.UPFN.Utf16ToUtf8(data->pFuncs, arg1, arg2)
|
|
|
|
# define VBOX_UTF8_TO_UTF16(arg1, arg2) gVBoxAPI.UPFN.Utf8ToUtf16(data->pFuncs, arg1, arg2)
|
|
|
|
|
|
|
|
# define VBOX_ADDREF(arg) gVBoxAPI.nsUISupports.AddRef((void *)(arg))
|
|
|
|
|
|
|
|
# define VBOX_RELEASE(arg) \
|
|
|
|
do { \
|
|
|
|
if (arg) { \
|
|
|
|
gVBoxAPI.nsUISupports.Release((void *)arg); \
|
|
|
|
(arg) = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
# define VBOX_MEDIUM_RELEASE(arg) \
|
|
|
|
do { \
|
|
|
|
if (arg) { \
|
|
|
|
gVBoxAPI.UIMedium.Release(arg); \
|
|
|
|
(arg) = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
# define vboxIIDUnalloc(iid) gVBoxAPI.UIID.vboxIIDUnalloc(data, iid)
|
|
|
|
# define vboxIIDToUUID(iid, uuid) gVBoxAPI.UIID.vboxIIDToUUID(data, iid, uuid)
|
|
|
|
# define vboxIIDFromUUID(iid, uuid) gVBoxAPI.UIID.vboxIIDFromUUID(data, iid, uuid)
|
|
|
|
# define vboxIIDIsEqual(iid1, iid2) gVBoxAPI.UIID.vboxIIDIsEqual(data, iid1, iid2)
|
2016-11-23 19:01:11 +00:00
|
|
|
# define DEBUGIID(msg, iid) gVBoxAPI.UIID.DEBUGIID(data, msg, iid)
|
2014-10-24 01:46:37 +00:00
|
|
|
# define vboxIIDFromArrayItem(iid, array, idx) \
|
|
|
|
gVBoxAPI.UIID.vboxIIDFromArrayItem(data, iid, array, idx)
|
|
|
|
|
|
|
|
# define VBOX_IID_INITIALIZE(iid) gVBoxAPI.UIID.vboxIIDInitialize(iid)
|
|
|
|
|
|
|
|
# define ARRAY_GET_MACHINES \
|
|
|
|
(gVBoxAPI.UArray.handleGetMachines(data->vboxObj))
|
|
|
|
|
|
|
|
/* Set result to -1 in case of failure. */
|
|
|
|
# define installUniformedAPI(gVBoxAPI, result) \
|
|
|
|
do { \
|
|
|
|
result = 0; \
|
2016-12-29 20:34:23 +00:00
|
|
|
if (uVersion >= 3002051 && uVersion < 4000051) { \
|
2014-10-24 01:46:37 +00:00
|
|
|
vbox40InstallUniformedAPI(&gVBoxAPI); \
|
|
|
|
} else if (uVersion >= 4000051 && uVersion < 4001051) { \
|
|
|
|
vbox41InstallUniformedAPI(&gVBoxAPI); \
|
|
|
|
} else if (uVersion >= 4001051 && uVersion < 4002020) { \
|
|
|
|
vbox42InstallUniformedAPI(&gVBoxAPI); \
|
|
|
|
} else if (uVersion >= 4002020 && uVersion < 4002051) { \
|
|
|
|
vbox42_20InstallUniformedAPI(&gVBoxAPI); \
|
|
|
|
} else if (uVersion >= 4002051 && uVersion < 4003004) { \
|
|
|
|
vbox43InstallUniformedAPI(&gVBoxAPI); \
|
|
|
|
} else if (uVersion >= 4003004 && uVersion < 4003051) { \
|
|
|
|
vbox43_4InstallUniformedAPI(&gVBoxAPI); \
|
2016-06-19 11:54:23 +00:00
|
|
|
} else if (uVersion >= 4003051 && uVersion < 5000051) { \
|
|
|
|
vbox50InstallUniformedAPI(&gVBoxAPI); \
|
2016-11-08 09:56:33 +00:00
|
|
|
} else if (uVersion >= 5000051 && uVersion < 5001051) { \
|
|
|
|
vbox51InstallUniformedAPI(&gVBoxAPI); \
|
2014-10-24 01:46:37 +00:00
|
|
|
} else { \
|
|
|
|
result = -1; \
|
|
|
|
} \
|
2016-09-26 19:01:27 +00:00
|
|
|
} while (0)
|
2014-10-24 01:46:37 +00:00
|
|
|
|
2014-08-11 10:06:04 +00:00
|
|
|
#endif /* VBOX_COMMON_H */
|