1 | /* $Id: VBoxVMInfo.h 13242 2008-10-14 09:51:47Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxVMInfo - Virtual machine (guest) information for the host.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * Sun Microsystems, Inc. confidential
|
---|
10 | * All rights reserved
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef ___VBOXSERVICEVMINFO_H
|
---|
14 | #define ___VBOXSERVICEVMINFO_H
|
---|
15 |
|
---|
16 | /* The guest management service prototypes. */
|
---|
17 | int vboxVMInfoInit (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
|
---|
18 | unsigned __stdcall vboxVMInfoThread (void *pInstance);
|
---|
19 | void vboxVMInfoDestroy (const VBOXSERVICEENV *pEnv, void *pInstance);
|
---|
20 |
|
---|
21 | /* The following constant may be defined by including NtStatus.h. */
|
---|
22 | #define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
|
---|
23 |
|
---|
24 | /* Prototypes for dynamic loading. */
|
---|
25 | typedef DWORD (WINAPI* fnWTSGetActiveConsoleSessionId)();
|
---|
26 |
|
---|
27 | /* The information context. */
|
---|
28 | typedef struct _VBOXINFORMATIONCONTEXT
|
---|
29 | {
|
---|
30 | const VBOXSERVICEENV *pEnv;
|
---|
31 | uint32_t iInfoSvcClientID;
|
---|
32 | fnWTSGetActiveConsoleSessionId pfnWTSGetActiveConsoleSessionId;
|
---|
33 | BOOL fFirstRun;
|
---|
34 | uint32_t cUsers;
|
---|
35 | } VBOXINFORMATIONCONTEXT;
|
---|
36 |
|
---|
37 | /* Some wrappers. */
|
---|
38 | int vboxVMInfoWriteProp (VBOXINFORMATIONCONTEXT* a_pCtx, char *a_pszKey, char *a_pszValue);
|
---|
39 | int vboxVMInfoWritePropInt (VBOXINFORMATIONCONTEXT* a_pCtx, char *a_pszKey, int a_iValue);
|
---|
40 |
|
---|
41 | #endif /* !___VBOXSERVICEVMINFO_H */
|
---|
42 |
|
---|