Bitdefender Hypervisor Memory Introspection
windeployer.h File Reference
#include "introtypes.h"

Go to the source code of this file.

Functions

INTSTATUS IntWinDepInjectProcess (DWORD AgentTag, PBYTE AgentContent, DWORD AgentSize, const CHAR *Name, const CHAR *Args)
 Inject a process inside a Windows guest. More...
 
INTSTATUS IntWinDepInjectFile (PBYTE FileContent, DWORD FileSize, const CHAR *Name)
 Inject a file inside the Windows guest. More...
 

Function Documentation

◆ IntWinDepInjectFile()

INTSTATUS IntWinDepInjectFile ( PBYTE  FileContent,
DWORD  FileSize,
const CHAR Name 
)

Inject a file inside the Windows guest.

This function will inject a file inside the guest. The file will be written inside the System% folder, so make sure you use a name that will not conflict with potential existing files.

Parameters
[in]FileContentThe file contents to be injected.
[in]FileSizeThe file size.
[in]NameThe file name.
Return values
INT_STATUS_SUCCESSOn success.

Definition at line 294 of file windeployer.c.

Referenced by IntDepInjectFile().

◆ IntWinDepInjectProcess()

INTSTATUS IntWinDepInjectProcess ( DWORD  AgentTag,
PBYTE  AgentContent,
DWORD  AgentSize,
const CHAR Name,
const CHAR Args 
)

Inject a process inside a Windows guest.

Inject a process inside the Windows guest. The executable file will be written inside the System% folder, so make sure you use a name that will not conflict with existing files inside that folder. The process will be started under the SYSTEM user by default.

Parameters
[in]AgentTagTag used to identify the agent. Some tags are predefined and reserved:
[in]AgentContentUnless AgentTag indicates a predefined agent, this must be supplied.
[in]AgentSizeSize of the AgentContent buffer.
[in]NameAgent name. The process will have this name inside the guest.
[in]ArgsOptional arguments to be passed to the agent.
Return values
INT_STATUS_SUCCESSOn success.
INT_STATUS_INVALID_PARAMETERIf an invalid parameter is supplied.

Definition at line 137 of file windeployer.c.

Referenced by IntDepInjectProcess().