GuestProcessImpl.h revision 5f2b03bf7695dabd71222dba123532a3f76828c1
/* $Id$ */
/** @file
* VirtualBox Main - XXX.
*/
/*
* Copyright (C) 2012 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 ____H_GUESTPROCESSIMPL
#define ____H_GUESTPROCESSIMPL
#include "VirtualBoxBase.h"
#include "GuestCtrlImplPrivate.h"
/**
* TODO
*/
{
* @{ */
int init(Console *aConsole, GuestSession *aSession, uint32_t aProcessID, const GuestProcessInfo &aProcInfo);
void uninit(void);
HRESULT FinalConstruct(void);
void FinalRelease(void);
/** @} */
/** @name IProcess interface.
* @{ */
STDMETHOD(WaitFor)(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitReason_T *aReason);
/** @} */
/** @name Public internal methods.
* @{ */
bool isReady(void);
int startProcess(void);
int terminateProcess(void);
int waitFor(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitReason_T *aReason);
/** @} */
struct Data
{
/** Pointer to parent session. */
/** Pointer to the console object. Needed
* for HGCM (VMMDev) communication. */
/** All related callbacks to this process. */
/** The process start information. */
/** Exit code if process has been terminated. */
/** PID reported from the guest. */
/** Internal, host-side process ID. */
/** The current process status. */
/** Flag indicating whether the process has been started. */
bool mStarted;
/** The next upcoming context ID. */
} mData;
};
#endif /* !____H_GUESTPROCESSIMPL */