VBoxTrayMsg.h revision 6d01ab3ab862974eb7aaa1f685364f44c7d2282b
/* $Id$ */
/** @file
*/
/*
* Copyright (C) 2010-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBOXTRAY_MSG_H
#define ___VBOXTRAY_MSG_H
#define VBOXTRAY_IPC_PIPENAME "VBoxTrayIPCSvc"
enum VBOXTRAYIPCMSGTYPE
{
/** Restarts VBoxTray. */
/** Shows a balloon message in the tray area. */
/** Retrieves the current user's last input
* time. This will be the user VBoxTray is running
* under. */
};
/* VBoxTray's IPC header. */
typedef struct VBOXTRAYIPCHEADER
{
/** Header version, must be 0 by now. */
/** Message type. Specifies a message
* of VBOXTRAYIPCMSGTYPE. */
/** Message length (in bytes). This must
* include the overall message length, including
* (eventual) dynamically allocated areas which
* are passed into the message structure.
*/
/**
* Tells VBoxTray to show a balloon message in Windows'
* tray area. This may or may not work depending on the
* system's configuration / set user preference.
*/
typedef struct VBOXTRAYIPCMSG_SHOWBALLOONMSG
{
/** Length of message body (in bytes). */
/** Length of message title (in bytes). */
/** Message type. */
/** Time to show the message (in ms). */
/** Dynamically allocated stuff.
*
* Note: These must come at the end of the
* structure to not overwrite any important
* stuff above.
*/
/** Message body. Can be up to 256 chars
* long. */
char szMsgContent[1];
/** Message title. Can be up to 73 chars
* long. */
char szMsgTitle[1];
/**
* Response telling the last input of the current user.
*/
typedef struct VBOXTRAYIPCRES_USERLASTINPUT
{
#endif /* !___VBOXTRAY_MSG_H */