RemoteDllLoader Class Reference

Allows injecting DLLs into remote processes. More...

#include <loader.h>

List of all members.

Public Member Functions

 RemoteDllLoader (HINSTANCE hDll, bool FreeLibraryAfterInit=true)
 Initializes the object and stores the path for the DLL to be loaded in remote processes.
 ~RemoteDllLoader ()
HANDLE InitiateDLLLoading (unsigned PID, DWORD *pThreadID=NULL)
 Starts remote DLL loading and returns the handle to the remote thread.
HANDLE InitiateDLLUnloading (unsigned PID, bool UseShortName=true, DWORD *pThreadID=NULL)
 Starts DLL unloading and returns a handle to the created remote thread.
HINSTANCE FindLibraryInProcess (unsigned PID, bool UseShortName=true)
 Finds a library among the libraries loaded into a remote process.

Static Public Member Functions

static ULONGLONG GetRemoteProcAddress (unsigned PID, TCHAR *pDllName, char *pFuncName)
static int GetRemoteCommandLineW (unsigned PID, wchar_t *pCmdLine, size_t MaxNameLength)

Private Member Functions

wchar_t * GetDllName (bool ShortName)

Private Attributes

TCHAR m_DllName [MAX_PATH]


Detailed Description

Allows injecting DLLs into remote processes.

Definition at line 14 of file loader.h.


Constructor & Destructor Documentation

RemoteDllLoader::RemoteDllLoader ( HINSTANCE  hDll,
bool  FreeLibraryAfterInit = true 
) [inline]

Initializes the object and stores the path for the DLL to be loaded in remote processes.

Definition at line 36 of file loader.h.

RemoteDllLoader::~RemoteDllLoader (  )  [inline]

Definition at line 45 of file loader.h.


Member Function Documentation

HINSTANCE RemoteDllLoader::FindLibraryInProcess ( unsigned  PID,
bool  UseShortName = true 
) [inline]

Finds a library among the libraries loaded into a remote process.

Definition at line 109 of file loader.h.

Here is the call graph for this function:

wchar_t* RemoteDllLoader::GetDllName ( bool  ShortName  )  [inline, private]

Definition at line 20 of file loader.h.

static int RemoteDllLoader::GetRemoteCommandLineW ( unsigned  PID,
wchar_t *  pCmdLine,
size_t  MaxNameLength 
) [inline, static]

Definition at line 117 of file loader.h.

Here is the call graph for this function:

static ULONGLONG RemoteDllLoader::GetRemoteProcAddress ( unsigned  PID,
TCHAR *  pDllName,
char *  pFuncName 
) [inline, static]

Definition at line 49 of file loader.h.

Here is the call graph for this function:

HANDLE RemoteDllLoader::InitiateDLLLoading ( unsigned  PID,
DWORD *  pThreadID = NULL 
) [inline]

Starts remote DLL loading and returns the handle to the remote thread.

Definition at line 61 of file loader.h.

Here is the call graph for this function:

HANDLE RemoteDllLoader::InitiateDLLUnloading ( unsigned  PID,
bool  UseShortName = true,
DWORD *  pThreadID = NULL 
) [inline]

Starts DLL unloading and returns a handle to the created remote thread.

Definition at line 91 of file loader.h.

Here is the call graph for this function:


Member Data Documentation

TCHAR RemoteDllLoader::m_DllName[MAX_PATH] [private]

Definition at line 17 of file loader.h.


The documentation for this class was generated from the following file:
  • E:/PROJECTS/cvsed/mixed/VIRTUA~1/kdclient/loader.h