Main Logo
Main
Hardware
Software
Misc
Search

Code Snippets

 

These are some random classes and code snippets that I have written over the years. I do not garuntee that they are bug free nor complete. Feel free to use any of these, just give me credit where credit is due and if you do find any problems contact me so that I can fix them.

Name
Platform
Description
Date
Files
CDllLoader
Win32 API
Encapsulates a DLL into a resource compiled inside of an executable. Very useful for storing hook functions inside of a single executable. Original concept built off of JFalcon's proof of concept. (see links for JFalcon's website)
10/12/2001
CMutex
Win32 API
Encapsulates Mutex object inside a class. Useful for locking resources (ie: threads) or only allowing a program to be run once. Could use some more work, but does what I needed it to do.
10/26/2001
CThread
Win32 API
Encapsulates a thread inside of a class. Very basic and easy to use. Could add some more thread functions, but basically a complete wrapper class for win32 threads.
10/26/2001
UnicodeFix
Win32 API
Simple file to include which patches some of the C Runtime library functions that are not already patched for UNICODE compliance. Also started to add some of the winsock functions. Very useful for seemlessly converting old code to UNICODE compliance.
10/13/2001
WinsockX
Win32 API
Extra functions for winsock code. Functions to perform standard tasks such as retrieve all IPs for the machine, validate IP addresses, startup winsock, shutdown winsock, etc...
10/14/2001
CWnd
Win32 API
Encapsulates a win32 window inside of a class. Used extensively in most of my projects to force win32 API programming to a more object oriented design level. Added dialog support although haven't tested very extensively. Would like to add support for dynamic message maps soon. Use this class as a base class and derive all of your classes from this class.
10/7/2001