My PEStuff Dll Library has its own site... check it here!
Here you find some winsock code snippets in C.



Sunshine's Desktop Symbol Utility V1

Version : 1.0

Date : August 2006

Source available : YES

Description :
This utility change the text color and the text background color of the desktop symbols. Windows XP/Vista has the disadvantage that the symbol text is shaded when the background color is set to transparent. This tool corrects this behaviour by injecting a dll file into the explorer.exe process.

For further information, check the Desktop Symbol Utility Site.

#########





Huffman Compression

Version : 1.1 / Date : August 2006

Source available : YES

Description :
This is my own implementation of the huffman compression algorithm. Well, it works and is relatively fast but the compression ratio is not that good. It was not that easy to code, so hopyfully the source is useful for you :-)
Version 1.1 is a slightly improved version (more stable and better compression).

######### Download EXE including Source (32KB)

#########
Click image for larger screenshot





Simple Bootsector Info Tool

Version : 0.6 / Date : June 2009

Source available : YES

Description :
A very simple example on how to read the bootsector of a hard/usb drive, display the important FAT/FAT32/NTFS fields and dump the bootsector to file. Maybe this is a good starting point for some kind of disk-information tool.

######### Download EXE including Source (34KB)

#########
Click image for larger screenshot





Message Box API Hook

Date : October 2007

Source available : YES

Description :
This is my own lame example of coding an api hook. It injects a dll into the address space of a target application. As soon it is loaded, it searches the import table of the target to redirect the MessageBox function. Works only with a few apps but perhaps it is interesting for you :-)

######### Download including Source (29KB)

#########
Click image for larger screenshot






Who owns the fish?

Date : June 2005

Source available : YES

Description :
This is my try to solve the logical quest 'Who owns the fish?'. Can can read it here:
######### in English
######### in German
In fact I didn't know how to solve a logical quest in C. So probably this isn't the best solution, but it works :-) Nevertheless have a look yourself at the source...

######### Download including Source (8KB)

#########
Click image for larger screenshot






AviToYuv

Date : September 2008 / Version : 1.0

Source available : YES

Description :
This little commandline tool converts avi files to planar 4:2:0 yuv files using the Video for Windows Interface for accessing the single frames

######### Download including Source (12KB)

#########
Click image for larger screenshot





Display Settings Changer

Date : June 2009 / Version : 1.0

Source available : YES

Description :
This little commandline tool allows to change to display mode of the primary display by commandline arguments. I needed the possibility to change the resolution from a .bat file, so maybe someone also requires such a functionality.

######### Download including Source (11KB)

#########
Click image for larger screenshot






CmdLine in Explorer

Date : June 2007

Source available : YES

Description :
This tiny programm adds a new menu item to the context menu when you right-click a folder in windows explorer. Selecting this item opens a commandline window in the current directory. This feature can be very handy if you work often with the console und are tired of opening the cmd and changing to your desired directory with cd\.. . Have a look at the screenshots to see what I mean.
This works under XP without problems; under Vista you have to execute this app with administrator rights.

######### Download including Source (55KB)

#

#
Click images for larger screenshot






A very simple Hex/Dec/Bin Calculator

Date : June 2005

Source available : YES

Description :
Converts hexadecimal numbers in decimal & binary and the other ways round... Very basic, can not handle negative and floating-point numbers.

######### Download including Source (8KB)

#########
Click image for larger screenshot






SecMaker V2

Version: 2.0 / Date : June 2005

Source available : YES

Description :
This little tool allows you to add zeropadded sections to a PE file, taking care of file-alignment and so on in order keep the file valid & executable... This version should be nearly bugfree :-)

######### Download including Source (62KB)

#########
Click image for larger screenshot





Searchstr

Date : September 2010
Update: June 2011 -> Version 1.1: fixed minor bugs, improved commandline handling

Source available : YES

Description :
A little commandline tool (I required for personal needs) to search files or whole directories for strings (byte-wise search). This tool proved itself quite useful, at least for me.

######### Download V1.1 including Source (14KB)

#########
Click image for larger screenshot






FindFiles

Date : January 2004

Source available : YES

Description :
Just a little file searcher tool. It's the result while I was playing with the FindFirstFile/FindNextFile Apis.

######### Download including Source (63KB)

#########
Click image for larger screenshot






Region Creator

Version: 1.1 / Date : September 2005

Source available : YES

Description :
This little application scans an image for a chosen transparent color and save this region to file.
Features:

* supports bmp, png, gif and jpeg files
* choose transparent color from image or type in the RGB values
* preview of region
New in Version 1.1:
* Option to save the region to a C source file. So you don't have to include a rgn file to your resource
or as a file anymore. Just include the generated header file to your project and call one single function
on startup. That's it :-)
* Possibility to use another layout by specifying the argument -newGUI on the RegionCreator commandline.
Well that's not a real feature but I was playing around how to subclass a window and that's the result.
* Some little bugfixes and 'beauty changes'
* More errorhandling

######### Download 1.1 (48KB)
######### Download Source (78KB)

######### Download Examples (78KB)
Old version (1.0, September 2005):
######### Screenshot
######### Download 1.0 (48KB)
######### Download Source (78KB)

#########

#########
Click images for larger screenshot


#########


This site is part of Sunshine's Homepage