VirtualBox

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

最後變更 在這個檔案從33966是 33966,由 vboxsync 提交於 14 年 前

VBoxTray: Cleaning up, refactoring, grouping window messages.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.5 KB
 
1/* $Id: VBoxTray.h 33966 2010-11-11 10:32:07Z 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.alldomusa.eu.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/*
39 * Windows messsages.
40 */
41
42/**
43 * General VBoxTray messages.
44 */
45#define WM_VBOXTRAY_TRAY_ICON WM_APP + 40
46#define WM_VBOXTRAY_TRAY_DISPLAY_BALLOON WM_APP + 41
47/**
48 * VM/VMMDev related messsages.
49 */
50#define WM_VBOXTRAY_VM_RESTORED WM_APP + 100
51/**
52 * VRDP messages.
53 */
54#define WM_VBOXTRAY_VRDP_CHECK WM_APP + 301
55/**
56 * Misc. utility functions.
57 */
58#define WM_VBOXTRAY_CHECK_HOSTVERSION WM_APP + 1000
59
60
61/* The tray icon's ID. */
62#define ID_TRAYICON 2000
63
64
65/*
66 * Timer IDs.
67 */
68#define TIMERID_VBOXTRAY_CHECK_HOSTVERSION 1000
69
70/* The environment information for services. */
71typedef struct _VBOXSERVICEENV
72{
73 HINSTANCE hInstance;
74 HANDLE hDriver;
75 HANDLE hStopEvent;
76 /* display driver interface, XPDM - WDDM abstraction see VBOXDISPIF** definitions above */
77 VBOXDISPIF dispIf;
78} VBOXSERVICEENV;
79
80/* The service initialization info and runtime variables. */
81typedef struct _VBOXSERVICEINFO
82{
83 char *pszName;
84 int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
85 unsigned (__stdcall * pfnThread) (void *pInstance);
86 void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
87
88 /* Variables. */
89 HANDLE hThread;
90 void *pInstance;
91 bool fStarted;
92
93} VBOXSERVICEINFO;
94
95
96extern HWND gToolWindow;
97extern HINSTANCE gInstance;
98
99extern void VBoxServiceReloadCursor(void);
100
101#endif /* !___VBOXTRAY_H */
102
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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