Ticket #11330 (new enhancement)
Opened 3 years ago
SDK - IGuestSession - enhance guest process management functions
|Reported by:||smihaila||Owned by:|
|Version:||VirtualBox 4.2.6||Keywords:||sdk, IGuestSession, guest process list, IProcess wrapper|
I'm working on a custom-made test automation framework and I was having high hopes with VirtualBox for my VM-based automation needs. I'd like to see IGuestSession interface augmented with methods such as:
-Get list of ALL guess processes, not only those explicitly created through IGuestSession::CreateProcess()
-Bind/attach to an EXISTING guest process (not previously created via IGuestSession) and get an IProcess object wrapper around it, in order to be able to sync on it (i.e. wait for termination)
Considering how powerful the level of VirtualBox automation is currently (at least for windows guests - i.e. things like auto-logon, process execution, file injection/copying), tt would be a real pity not to have a 1st-class, built-in solution for more complete process management.
By having such support, we wouldn't have to rely on activating network support on the windows guest OS and mess with Microsoft Process/Debug diagnostics API and SMB/RPC calls (i.e. see Process.GetProcesses(string machineAddress) method in .NET Framework).