1 | /* $Id: VBoxTray.h 21888 2009-07-30 13:51:20Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxTray - Guest Additions Tray, Internal Header.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | * additional information or have any questions.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #ifndef ___VBOXTRAY_H
|
---|
23 | #define ___VBOXTRAY_H
|
---|
24 |
|
---|
25 | #include <windows.h>
|
---|
26 | #include <tchar.h>
|
---|
27 | #include <stdio.h>
|
---|
28 | #include <stdarg.h>
|
---|
29 | #include <process.h>
|
---|
30 |
|
---|
31 | #include <iprt/initterm.h>
|
---|
32 | #include <iprt/string.h>
|
---|
33 |
|
---|
34 | #include <VBox/version.h>
|
---|
35 | #include <VBox/Log.h>
|
---|
36 | #include <VBox/VBoxGuest.h> /** @todo use the VbglR3 interface! */
|
---|
37 | #include <VBox/VBoxGuestLib.h>
|
---|
38 |
|
---|
39 | #define WM_VBOX_RESTORED 0x2005
|
---|
40 | #define WM_VBOX_CHECK_VRDP 0x2006
|
---|
41 |
|
---|
42 |
|
---|
43 | /* The environment information for services. */
|
---|
44 | typedef struct _VBOXSERVICEENV
|
---|
45 | {
|
---|
46 | HINSTANCE hInstance;
|
---|
47 | HANDLE hDriver;
|
---|
48 | HANDLE hStopEvent;
|
---|
49 | } VBOXSERVICEENV;
|
---|
50 |
|
---|
51 | /* The service initialization info and runtime variables. */
|
---|
52 | typedef struct _VBOXSERVICEINFO
|
---|
53 | {
|
---|
54 | char *pszName;
|
---|
55 | int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
|
---|
56 | unsigned (__stdcall * pfnThread) (void *pInstance);
|
---|
57 | void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
|
---|
58 |
|
---|
59 | /* Variables. */
|
---|
60 | HANDLE hThread;
|
---|
61 | void *pInstance;
|
---|
62 | bool fStarted;
|
---|
63 |
|
---|
64 | } VBOXSERVICEINFO;
|
---|
65 |
|
---|
66 |
|
---|
67 | extern HWND gToolWindow;
|
---|
68 |
|
---|
69 | extern void VBoxServiceReloadCursor(void);
|
---|
70 |
|
---|
71 | #endif /* !___VBOXTRAY_H */
|
---|
72 |
|
---|