KeyLogger Class Reference

#include <KeyLogger.h>

List of all members.

Public Member Functions

 KeyLogger (LogTypeName newLogType)
 KeyLogger (DataLog &newDataLog)
void hookIt (void)
LRESULT CALLBACK LowLevelKeyboardProc (int nCode, WPARAM wParam, LPARAM lParam)

Static Public Member Functions

static LRESULT CALLBACK LowLevelKeyboardProcWrapper (int nCode, WPARAM wParam, LPARAM lParam)


Detailed Description

KeyLogger class will actually facilitate the trapping of any keystrokes. The constructor will be passed a pointer to the DataLog object, so that both the myhook.cpp, and the KeyLogger class have access to it. When any information is caught, the data will be passed from the KeyLogger to the DataLog. Instances where the main file would need access would be to put a timestamp at startup, or something along those lines.

Constructor & Destructor Documentation

KeyLogger::KeyLogger ( LogTypeName  newLogType  ) 

Overloaded constructor to accept LogType

Parameters:
newLogType LogType to pass to DataLog object

KeyLogger::KeyLogger ( DataLog newDataLog  ) 

Overloaded constructor to accept pointer to DataLog object

Parameters:
newDataLog pointer to new DataLog object


Member Function Documentation

void KeyLogger::hookIt ( void   ) 

Function to setup keyboard hook

LRESULT CALLBACK KeyLogger::LowLevelKeyboardProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
)

Actuall callback function for keyboard hook

LRESULT CALLBACK KeyLogger::LowLevelKeyboardProcWrapper ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
) [static]

Wrapper for callback function (keyboard hook) necissary for non-static function


The documentation for this class was generated from the following files:

Generated on Fri May 8 13:08:45 2009 for MyHook by  doxygen 1.5.8