1 | /* $Id: VBoxServiceControlExecThread.h 38180 2011-07-26 12:26:34Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxServiceControlExecThread - Thread for an executed guest process.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011 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 ___VBoxServiceControlExecThread_h
|
---|
19 | #define ___VBoxServiceControlExecThread_h
|
---|
20 |
|
---|
21 | #include "VBoxServiceInternal.h"
|
---|
22 |
|
---|
23 | int VBoxServiceControlExecThreadAlloc(PVBOXSERVICECTRLTHREAD pThread,
|
---|
24 | uint32_t u32ContextID,
|
---|
25 | const char *pszCmd, uint32_t uFlags,
|
---|
26 | const char *pszArgs, uint32_t uNumArgs,
|
---|
27 | const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
|
---|
28 | const char *pszUser, const char *pszPassword, uint32_t uTimeLimitMS);
|
---|
29 | int VBoxServiceControlExecThreadAssignPID(PVBOXSERVICECTRLTHREADDATAEXEC pData, uint32_t uPID);
|
---|
30 | void VBoxServiceControlExecThreadDataDestroy(PVBOXSERVICECTRLTHREADDATAEXEC pData);
|
---|
31 | int VBoxServiceControlExecThreadGetOutput(uint32_t uPID, uint32_t uHandleId, uint32_t uTimeout,
|
---|
32 | uint8_t *pBuf, uint32_t cbSize, uint32_t *pcbRead);
|
---|
33 | int VBoxServiceControlExecThreadSetInput(uint32_t uPID, bool fPendingClose, uint8_t *pBuf,
|
---|
34 | uint32_t cbSize, uint32_t *pcbWritten);
|
---|
35 | int VBoxServiceControlExecThreadStartAllowed(bool *pbAllowed);
|
---|
36 | void VBoxServiceControlExecThreadStop(const PVBOXSERVICECTRLTHREAD pThread);
|
---|
37 | #endif /* !___VBoxServiceControlExecThread_h */
|
---|
38 |
|
---|