Changeset 47213 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jul 17, 2013 12:36:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTrayMsg.h
r34382 r47213 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 19 #define ___VBOXTRAY_MSG_H 20 20 21 #define VBOXTRAY_PIPE_IPC "\\\\.\\pipe\\VBoxTrayIPC" 22 #define VBOXTRAY_PIPE_IPC_BUFSIZE 64 * 1024 21 #define VBOXTRAY_IPC_PIPENAME "VBoxTrayIPCSvc" 23 22 24 23 enum VBOXTRAYIPCMSGTYPE … … 26 25 /** Restarts VBoxTray. */ 27 26 VBOXTRAYIPCMSGTYPE_RESTART = 10, 28 29 /** Asks the IPC thread to quit. */30 VBOXTRAYIPCMSGTYPE_IPC_QUIT = 50,31 32 27 /** Shows a balloon message in the tray area. */ 33 VBOXTRAYIPCMSGTYPE_SHOWBALLOONMSG = 100 28 VBOXTRAYIPCMSGTYPE_SHOWBALLOONMSG = 100, 29 /** Retrieves the current user's last input 30 * time. This will be the user VBoxTray is running 31 * under. */ 32 VBOXTRAYIPCMSGTYPE_USERLASTINPUT = 120 34 33 }; 35 34 36 35 /* VBoxTray's IPC header. */ 37 typedef struct _VBOXTRAYIPCHEADER36 typedef struct VBOXTRAYIPCHEADER 38 37 { 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; 38 /** Header version, must be 0 by now. */ 39 uint32_t uHdrVersion; 40 /** Message type. Specifies a message 41 * of VBOXTRAYIPCMSGTYPE. */ 42 uint32_t uMsgType; 43 /** Message length (in bytes). This must 44 * include the overall message length, including 45 * (eventual) dynamically allocated areas which 46 * are passed into the message structure. 47 */ 48 uint32_t uMsgLen; 49 48 50 } VBOXTRAYIPCHEADER, *PVBOXTRAYIPCHEADER; 49 51 50 typedef struct _VBOXTRAYIPCMSG_SHOWBALLOONMSG 52 /** 53 * Tells VBoxTray to show a balloon message in Windows' 54 * tray area. This may or may not work depending on the 55 * system's configuration / set user preference. 56 */ 57 typedef struct VBOXTRAYIPCMSG_SHOWBALLOONMSG 51 58 { 52 /** Message content. */53 TCHAR szContent[256];54 /** Message title. */55 TCHAR szTitle[64];59 /** Length of message body (in bytes). */ 60 uint32_t cbMsgContent; 61 /** Length of message title (in bytes). */ 62 uint32_t cbMsgTitle; 56 63 /** Message type. */ 57 ULONG ulType; 58 /** Flags; not used yet. */ 59 ULONG ulFlags; 60 /** Time to show the message (in msec). */ 61 ULONG ulShowMS; 64 uint32_t uType; 65 /** Time to show the message (in ms). */ 66 uint32_t uShowMS; 67 /** Dynamically allocated stuff. 68 * 69 * Note: These must come at the end of the 70 * structure to not overwrite any important 71 * stuff above. 72 */ 73 /** Message body. Can be up to 256 chars 74 * long. */ 75 char szMsgContent[1]; 76 /** Message title. Can be up to 73 chars 77 * long. */ 78 char szMsgTitle[1]; 62 79 } VBOXTRAYIPCMSG_SHOWBALLOONMSG, *PVBOXTRAYIPCMSG_SHOWBALLOONMSG; 80 81 /** 82 * Response telling the last input of the current user. 83 */ 84 typedef struct VBOXTRAYIPCRES_USERLASTINPUT 85 { 86 uint32_t uTickCount; 87 } VBOXTRAYIPCRES_USERLASTINPUT, *PVBOXTRAYIPCRES_USERLASTINPUT; 63 88 64 89 #endif /* !___VBOXTRAY_MSG_H */
Note:
See TracChangeset
for help on using the changeset viewer.