VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h@ 33682

Last change on this file since 33682 was 31145, checked in by vboxsync, 15 years ago

VBoxTray: move display WDDM/XPDM abstraction API to a separate file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: VBoxTray.h 31145 2010-07-27 15:53:05Z vboxsync $ */
2/** @file
3 * VBoxTray - Guest Additions Tray, Internal Header.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Oracle Corporation
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
18#ifndef ___VBOXTRAY_H
19#define ___VBOXTRAY_H
20
21#include <windows.h>
22#include <tchar.h>
23#include <stdio.h>
24#include <stdarg.h>
25#include <process.h>
26
27#include <iprt/initterm.h>
28#include <iprt/string.h>
29
30#include <VBox/version.h>
31#include <VBox/Log.h>
32#include <VBox/VBoxGuest.h> /** @todo use the VbglR3 interface! */
33#include <VBox/VBoxGuestLib.h>
34#include <VBoxDisplay.h>
35
36#include "VBoxDispIf.h"
37
38#define WM_VBOX_RESTORED WM_APP + 1
39#define WM_VBOX_CHECK_VRDP WM_APP + 2
40#define WM_VBOX_CHECK_HOSTVERSION WM_APP + 3
41#define WM_VBOX_TRAY WM_APP + 4
42
43#define ID_TRAYICON 2000
44
45
46/* The environment information for services. */
47typedef struct _VBOXSERVICEENV
48{
49 HINSTANCE hInstance;
50 HANDLE hDriver;
51 HANDLE hStopEvent;
52 /* display driver interface, XPDM - WDDM abstraction see VBOXDISPIF** definitions above */
53 VBOXDISPIF dispIf;
54} VBOXSERVICEENV;
55
56/* The service initialization info and runtime variables. */
57typedef struct _VBOXSERVICEINFO
58{
59 char *pszName;
60 int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
61 unsigned (__stdcall * pfnThread) (void *pInstance);
62 void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
63
64 /* Variables. */
65 HANDLE hThread;
66 void *pInstance;
67 bool fStarted;
68
69} VBOXSERVICEINFO;
70
71
72extern HWND gToolWindow;
73extern HINSTANCE gInstance;
74
75extern void VBoxServiceReloadCursor(void);
76
77#endif /* !___VBOXTRAY_H */
78
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