kdclient/kdclient.cpp File Reference

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

#include "stdafx.h"
#include <tchar.h>
#include "../kdvmware/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:


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)
DWORD __stdcall 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
static 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.12 2008/12/31 13:25:05 Bazis Exp

Function Documentation

bool HookVmware ( HINSTANCE  hThisDll  ) 

Here is the call graph for this function:

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

Here is the call graph for this function:

DWORD __stdcall PatcherThreadMain ( LPVOID  lpParam  ) 

Here is the call graph for this function:

DWORD CALLBACK ThreadBody ( LPVOID  lpParam  ) 

Here is the call graph for this function:

void UnhookVmware (  ) 

Here is the call graph for this function:


Variable Documentation

RPCTableManager* g_pManager = NULL [static]

bool s_bUnload = false [static]

volatile LONG s_CallCount = 0 [static]

HANDLE s_hThread = INVALID_HANDLE_VALUE [static]

HANDLE s_hThreadEvent = INVALID_HANDLE_VALUE [static]

KdRpcDispatcher* s_pClient = NULL [static]

SourceForge.net Logo