1 | /* $Id: VBoxServiceControlExecThread.h 38113 2011-07-22 13:57:35Z 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 VBoxServiceControlExecThreadDestroy(PVBOXSERVICECTRLTHREADDATAEXEC pData);
|
---|
31 | int VBoxServiceControlExecThreadSetInput(uint32_t uPID, bool fPendingClose, uint8_t *pBuf,
|
---|
32 | uint32_t cbSize, uint32_t *pcbWritten);
|
---|
33 | int VBoxServiceControlExecThreadGetOutput(uint32_t uPID, uint32_t uHandleId, uint32_t uTimeout,
|
---|
34 | uint8_t *pBuf, uint32_t cbSize, uint32_t *pcbRead);
|
---|
35 | void VBoxServiceControlExecThreadsShutdown(void);
|
---|
36 |
|
---|
37 | #endif /* !___VBoxServiceControlExecThread_h */
|
---|
38 |
|
---|