1 | /* $Id: VBoxTrayMsg.h 34382 2010-11-25 15:49:37Z 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.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_MSG_H
|
---|
19 | #define ___VBOXTRAY_MSG_H
|
---|
20 |
|
---|
21 | #define VBOXTRAY_PIPE_IPC "\\\\.\\pipe\\VBoxTrayIPC"
|
---|
22 | #define VBOXTRAY_PIPE_IPC_BUFSIZE 64 * 1024
|
---|
23 |
|
---|
24 | enum VBOXTRAYIPCMSGTYPE
|
---|
25 | {
|
---|
26 | /** Restarts VBoxTray. */
|
---|
27 | VBOXTRAYIPCMSGTYPE_RESTART = 10,
|
---|
28 |
|
---|
29 | /** Asks the IPC thread to quit. */
|
---|
30 | VBOXTRAYIPCMSGTYPE_IPC_QUIT = 50,
|
---|
31 |
|
---|
32 | /** Shows a balloon message in the tray area. */
|
---|
33 | VBOXTRAYIPCMSGTYPE_SHOWBALLOONMSG = 100
|
---|
34 | };
|
---|
35 |
|
---|
36 | /* VBoxTray's IPC header. */
|
---|
37 | typedef struct _VBOXTRAYIPCHEADER
|
---|
38 | {
|
---|
39 | /** Message type. */
|
---|
40 | ULONG ulMsg;
|
---|
41 | /** Size of message body
|
---|
42 | * (without this header). */
|
---|
43 | ULONG cbBody;
|
---|
44 | /** User-supplied wParam. */
|
---|
45 | ULONG wParam;
|
---|
46 | /** User-supplied lParam. */
|
---|
47 | ULONG lParam;
|
---|
48 | } VBOXTRAYIPCHEADER, *PVBOXTRAYIPCHEADER;
|
---|
49 |
|
---|
50 | typedef struct _VBOXTRAYIPCMSG_SHOWBALLOONMSG
|
---|
51 | {
|
---|
52 | /** Message content. */
|
---|
53 | TCHAR szContent[256];
|
---|
54 | /** Message title. */
|
---|
55 | TCHAR szTitle[64];
|
---|
56 | /** Message type. */
|
---|
57 | ULONG ulType;
|
---|
58 | /** Flags; not used yet. */
|
---|
59 | ULONG ulFlags;
|
---|
60 | /** Time to show the message (in msec). */
|
---|
61 | ULONG ulShowMS;
|
---|
62 | } VBOXTRAYIPCMSG_SHOWBALLOONMSG, *PVBOXTRAYIPCMSG_SHOWBALLOONMSG;
|
---|
63 |
|
---|
64 | #endif /* !___VBOXTRAY_MSG_H */
|
---|
65 |
|
---|