VirtualBox

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

Last change on this file since 37608 was 36548, checked in by vboxsync, 14 years ago

VBoxService/GuestCopy: Fixed copying of small and 0-byte files. Refactored per-process threading code into own module, added thread locking/access.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: VBoxServiceControlExecThread.h 36548 2011-04-05 09:27:33Z 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);
29void VBoxServiceControlExecThreadDestroy(PVBOXSERVICECTRLTHREADDATAEXEC pData);
30int VBoxServiceControlExecThreadSetInput(uint32_t uPID, bool fPendingClose, uint8_t *pBuf,
31 uint32_t cbSize, uint32_t *pcbWritten);
32int VBoxServiceControlExecThreadGetOutput(uint32_t uPID, uint32_t uHandleId, uint32_t uTimeout,
33 uint8_t *pBuf, uint32_t cbSize, uint32_t *pcbRead);
34void VBoxServiceControlExecThreadsShutdown(void);
35
36#endif /* !___VBoxServiceControlExecThread_h */
37
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