Code libraries, samples and snippets
Below you will find code libraries and snippets.
Almost all the code you find here is fairly commented and in some cases documented and coupled with an article.

Because the sample projects where compiled under different development environment, you might want to change the libraries pathes in order to compile correctly.

 
PRecorder:
PRecorderCurrent Process Recorder class (CPRecorder).
This library is able to record all the input of the current process.
Can record mouse and keyboard movement.
The sample code provided is an unfinished code of a bigger project, however it shows you how to use this class. This wasn't created by me, instead this a Delphi to C++ code. All credits go to cyamon software
download: library | sample code
 
StringListParser:
This class is for those who want a light code that will allow them to parse a character seperated string easily.
This class is unicode capable and can intelligently parses strings as numbers.
Check the sample code for more information.
download: library | sample code
 
InterprocessCommunication:
This is a handy class. It allows to processes to communicate and send/receive data buffers with less than 3 lines of code.
Unlike other libraries, this library only allows synchronous IPC. When one process is waiting it will block until the other process sends something.
An article has been written for this library
download: library | sample code
 
ProcessApi:
This library allows you to easily list processes and modules under Win9x/ME/2k/XP.
It comes with two samples and a fairly documented source code.
In addition an article has been written about it on CodeProject

download: library | sample code
 
HotkeyHandler:
This class faciliates the creation and handling of global hotkeys.
you don't need to worry about having a window loop or not to use global hotkeys.
This class can be used in simple console mode application or in your NT service code.
An article has been written about this class on CodeProject
download: library | sample code
 
ProcessorRegisters:
A simple class that allows you to define registers for a fictional processor then allows you to easily modify the registers value by name.
I have subclassed the CProcessorRegisters class and made a Intel x86 32bit registers class.
Now you can simply modify registers as simply as doing this: setregister("eax", newValue);
download: code
 
Wizmo:
This is a simple application that is a clone of GRC's Wizmo tool.
This tool will illustrate how to achieve the following: Hibernate, Turn off monitor, play wave files, adjust master volume, adjust wave volume, turn off pc, lock pc, reboot pc, open/close cd trays
download: code
 
NoIf:
A Pascal code that shows how to use boolean casting in order to determine the number of days in a given year/month without actually using an 'If' statement or arrays.

download:
code
 

O95:
A simple memory game written in JavaScript. A desktop version written in VB6 also exists.
Requires: IE6 | Opera 7 | Mozilla
link:
code

 

SpiderMan - The Movie: Trainer:
This is a trainer +3 for the game "Spider Man: The Movie".
The code makes use of my CProcessApi library. It will demonstrate how to patch other processes in memory and basically illustrates how game trainers are coded.
download:
code

 
Window enumerator Delphi sample:
A simple code demonstrating how to enumerate windows using Delphi.
download:
code
 
Export directory walker:
C++ code showing how to walk in the PE directory in order to enumerate all exported functions.
download:
code
 
Mini XCopy clone:
C code (need Borland C) that shows how to copy directories and subdirectories.
download:
code
 

InMemPatch class:
C++ class demonstrating how to patch running or yet to be executed processes as if you were patching it on disk. Check the sample code on how to use the class.

download:
library | sample code

 
Library program:
Library/books/students management program written in C++/MFC/ADO.
This code is buggy because I wrote it when I had no ADO reference at all, however it can be useful in some cases.
download:
code
 
NTSubst:
An NT version of the SUBST tool.
download:
code
 
How to check if program is running inside Virtual PC :
A delphi snippet to detect Virtual PC
download:
code
 
DiskSector Read/Write

C++ class that allows you to read/write sectors on a Win9x/WinNT system.
It supports large disks on WinNT. The Win9x part is not extensively tested.
This library is implemented in the "Volume Serial Number changer" code/article.

download:
code
 
IDA Pro page

This page is dedicated for the Interactive Disassembler by DataRescue.
It contains useful plugins and IDC scripts.
Click here: "IDA Pro"