VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfo.h@ 13127

Last change on this file since 13127 was 13127, checked in by vboxsync, 16 years ago

Additions/Windows: guest property fix for LoggedInUsersList and new NoLoggedInUsers property which only gets updated when transitioning from/to no users. Important for timestamp.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1/* $Id: VBoxVMInfo.h 13127 2008-10-09 12:13:02Z 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. */
17int vboxVMInfoInit (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
18unsigned __stdcall vboxVMInfoThread (void *pInstance);
19void 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. */
25typedef DWORD (WINAPI* fnWTSGetActiveConsoleSessionId)();
26
27/* The information context. */
28typedef struct _VBOXINFORMATIONCONTEXT
29{
30 const VBOXSERVICEENV *pEnv;
31 uint32_t iInfoSvcClientID;
32 fnWTSGetActiveConsoleSessionId pfnWTSGetActiveConsoleSessionId;
33 BOOL fFirstRun;
34 uint32_t iUserCount;
35} VBOXINFORMATIONCONTEXT;
36
37/* Some wrappers. */
38int vboxVMInfoWriteProp (VBOXINFORMATIONCONTEXT* a_pCtx, char *a_pszKey, char *a_pszValue);
39int vboxVMInfoWritePropInt (VBOXINFORMATIONCONTEXT* a_pCtx, char *a_pszKey, int a_iValue);
40
41#endif /* !___VBOXSERVICEVMINFO_H */
42
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette