E:/PROJECTS/cvsed/mixed/VIRTUA~1/kdclient/kdclient.cpp File Reference

Contains the VMWare hooking/unhooking entries. More...

#include "stdafx.h"
#include <tchar.h>
#include "../kdvm/kdrpc.h"
#include <bzscmn/bzscmn.h>
#include "tablemgr.h"
#include "../rpcdispatch/rpcdisp.h"
#include "../rpcdispatch/kdcomdisp.h"
#include "../rpcdispatch/reporter.h"

Include dependency graph for kdclient.cpp:

Go to the source code of this file.

Classes

class  InterlockedIncrementer
 Provides convenient way to mark whether a code block is executing by using an global volatile counter. More...

Functions

static bool KDRPCDirectHandler (void *pContext, int ChannelNumber, char *pCommandBody, unsigned CommandBodyLength, char **ppReply, unsigned *pReplyLen)
unsigned SessionNameFromVMCmdLineW (wchar_t *pszCmdLine, wchar_t *pName, size_t MaxNameLength)
DWORD PatcherThreadMain (LPVOID lpParam)
DWORD CALLBACK ThreadBody (LPVOID lpParam)
bool HookVmware (HINSTANCE hThisDll)
void UnhookVmware ()

Variables

StatusReporterg_pReporter = NULL
static RPCTableManagerg_pManager = NULL
static volatile LONG s_CallCount = 0
static bool s_bUnload = false
HANDLE s_hThreadEvent = INVALID_HANDLE_VALUE
static HANDLE s_hThread = INVALID_HANDLE_VALUE
static KdRpcDispatchers_pClient = NULL


Detailed Description

Contains the VMWare hooking/unhooking entries.

Author:
Ivan Shcherbakov (Bazis)
Id
kdclient.cpp,v 1.15 2009/06/07 15:31:55 Administrator Exp

Definition in file kdclient.cpp.


Function Documentation

bool HookVmware ( HINSTANCE  hThisDll  ) 

Definition at line 189 of file kdclient.cpp.

Here is the call graph for this function:

static bool KDRPCDirectHandler ( void *  pContext,
int  ChannelNumber,
char *  pCommandBody,
unsigned  CommandBodyLength,
char **  ppReply,
unsigned *  pReplyLen 
) [static]

Definition at line 79 of file kdclient.cpp.

Here is the call graph for this function:

DWORD PatcherThreadMain ( LPVOID  lpParam  ) 

Definition at line 94 of file kdclient.cpp.

Here is the call graph for this function:

unsigned SessionNameFromVMCmdLineW ( wchar_t *  pszCmdLine,
wchar_t *  pName,
size_t  MaxNameLength 
)

Definition at line 148 of file patchapi.cpp.

Here is the call graph for this function:

DWORD CALLBACK ThreadBody ( LPVOID  lpParam  ) 

Definition at line 173 of file kdclient.cpp.

Here is the call graph for this function:

void UnhookVmware (  ) 

Definition at line 208 of file kdclient.cpp.

Here is the call graph for this function:


Variable Documentation

RPCTableManager* g_pManager = NULL [static]

Definition at line 17 of file kdclient.cpp.

Definition at line 16 of file kdclient.cpp.

bool s_bUnload = false [static]

Definition at line 19 of file kdclient.cpp.

volatile LONG s_CallCount = 0 [static]

Definition at line 18 of file kdclient.cpp.

HANDLE s_hThread = INVALID_HANDLE_VALUE [static]

Definition at line 22 of file kdclient.cpp.

HANDLE s_hThreadEvent = INVALID_HANDLE_VALUE

Definition at line 20 of file kdclient.cpp.

KdRpcDispatcher* s_pClient = NULL [static]

Definition at line 77 of file kdclient.cpp.