VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExecThread.h@ 38113

Last change on this file since 38113 was 38113, checked in by vboxsync, 13 years ago

VBoxService/GuestCtrl: Fixed stability issues due to PID recycling, enhanced and unified debug logging along with thread names to stdout.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
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
23int 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);
29int VBoxServiceControlExecThreadAssignPID(PVBOXSERVICECTRLTHREADDATAEXEC pData, uint32_t uPID);
30void VBoxServiceControlExecThreadDestroy(PVBOXSERVICECTRLTHREADDATAEXEC pData);
31int VBoxServiceControlExecThreadSetInput(uint32_t uPID, bool fPendingClose, uint8_t *pBuf,
32 uint32_t cbSize, uint32_t *pcbWritten);
33int VBoxServiceControlExecThreadGetOutput(uint32_t uPID, uint32_t uHandleId, uint32_t uTimeout,
34 uint8_t *pBuf, uint32_t cbSize, uint32_t *pcbRead);
35void VBoxServiceControlExecThreadsShutdown(void);
36
37#endif /* !___VBoxServiceControlExecThread_h */
38
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette