VirtualBox

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

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

VBoxTray/InstallHelper: IPC Update.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.8 KB
 
1/* $Id: VBoxTrayMsg.h 34357 2010-11-25 10:24:41Z vboxsync $ */
2/** @file
3 * VBoxTrayMsg - Globally registered messages (RPC) to/from VBoxTray.
4 */
5
6/*
7 * Copyright (C) 2010 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_MSG_H
19#define ___VBOXTRAY_MSG_H
20
21#define VBOXTRAY_PIPE_IPC "\\\\.\\pipe\\VBoxTrayIPC"
22#define VBOXTRAY_PIPE_IPC_BUFSIZE 64 * 1024
23
24enum VBOXTRAYIPCMSGTYPE
25{
26 /** Asks the IPC thread to quit. */
27 VBOXTRAYIPCMSGTYPE_QUIT = 10,
28 /** Restarts VBoxTray. */
29 VBOXTRAYIPCMSGTYPE_RESTART = 11,
30 /** Shows a balloon message in the tray area. */
31 VBOXTRAYIPCMSGTYPE_SHOWBALLOONMSG = 100
32};
33
34/* VBoxTray's IPC header. */
35typedef struct _VBOXTRAYIPCHEADER
36{
37 /** Message type. */
38 ULONG ulMsg;
39 /** Size of message body
40 * (without this header). */
41 ULONG cbBody;
42 /** User-supplied wParam. */
43 ULONG wParam;
44 /** User-supplied lParam. */
45 ULONG lParam;
46} VBOXTRAYIPCHEADER, *PVBOXTRAYIPCHEADER;
47
48typedef struct _VBOXTRAYIPCMSG_SHOWBALLOONMSG
49{
50 /** Message content. */
51 TCHAR szContent[256];
52 /** Message title. */
53 TCHAR szTitle[64];
54 /** Message type. */
55 ULONG ulType;
56 /** Flags; not used yet. */
57 ULONG ulFlags;
58 /** Time to show the message (in msec). */
59 ULONG ulShowMS;
60} VBOXTRAYIPCMSG_SHOWBALLOONMSG, *PVBOXTRAYIPCMSG_SHOWBALLOONMSG;
61
62#endif /* !___VBOXTRAY_MSG_H */
63
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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