This is a simple Windows application that converts text to and from base 64 representation. Unlike other such utilities I've come across, this one allows you to specify whether the input text should be treated as ANSI/MBCS or Unicode. Also, when converting from base 64, it attempts to determine whether the data is Unicode or ANSI/MBCS text, or binary - and displays the result accordingly.
Enter or paste the text you want to encode in the text field, select the Unicode or ANSI/MBCS option above, and press the "To Base64" button to see the encoded form in the Base 64 string field.
To decode a base 64 string, paste it into the base 64 string field and press the "From Base64" button.
If the decoded data appears to be text it will be shown in the text field and the Unicode or ANSI option above will be set accordingly. If the decoded data appears to be binary, it will be shown in this field as pairs of hexadecimal characters for each byte of data. Because the determination of text or binary is not foolproof you can select the "Binary Display" check box to force the display to the binary format.
CFTest lets you exercise the most common options you're likely to need with the CreateFile API.
I initially wrote CFTest when I first started developing for 32-bit Windows platforms because I found the documentation for the CreateFile API options confusing. Since then I've found it invaluable on many occasions when testing applications for correct file sharing behavior and evaluating the behaviour of the file system when reading and writing files.
V1.4. Adds the option to preserve the file timestamp (by using SetFileTime immediately after opening the file), and the posix semantics option.
V1.5. For ease of use, supports auto-complete in the file name edit control, and drag and drop of the file.
This is a test program that illustrates a quirk I came across using the SHGetFolderPath API under different platforms.
The program was published in association with an item titled "SHGetFolderPath() Platform Differences" in the "Tech Tips" column of Windows Developer's Journal March 2002 Volume 13, Number 3.
For anyone wondering, here was the quirk:
"Windows 2000 and XP natively implement SHGetFolderPath(), and behave as documented. But under NT4 and Windows 9x, it exhibits a quirk for some CSIDL values: it returns S_OK with an empty string for the folder path."
This one is simplicity itself! It's just a simple registry file (DllReg.reg) that I always find extremely useful to install on any system that I'm developing on when working with self-registering DLLs.
All it does is add registry entries to register 2 commands for .DLL and .OCX files. These commands run the regsvr32 commands to register and unregister files.
Download the file and merge the information to your registry. You'll then have a "Register" and "Unregister" context menu for .DLL and .OCX files.
This program lets you quickly create large numbers of (zero length) files - which can be useful if you need to test file enumeration code. It also has a simple find files test too.
A non-command line program that displays all 3 timestamp values for files and directories. You may find it useful with in conjunction with TouchCmd, the command line version of our TouchPro program. See the TouchPro documentation for the details.
This utility lets you change the screen-saver state (it will stop the screen saver if its running when the program switches the state to off), and manually start the screen saver. It might be useful if you're burning CDs and don't want the screen saver to start up. Command line options are /on, /off, or /start.
This console application lets you view and change the Windows foreground lock timeout value. It uses the SystemParametersInfo API (SPI_GETFOREGROUNDLOCKTIMEOUT & SPI_SETFOREGROUNDLOCKTIMEOUT).
This program lets you change the default Windows printer from a command line (or shortcut).
SetDefPr "Microsoft Fax"
SetDefPr "HP Deskjet 850C"
... and some further examples supplied by a user:
For a network printer installed in another PC:
For a network printer with IP address in the Network and not attached to any PC:
SetDefPr "\\Machine\HP LaserJet 8100 Series PCL 6"
This simple console application allows you to call the SetProcessWorkingSetSize API on an arbitrary process.
Use Task Manager (or whatever other tool you like) to find the PID of the process you want to affect, and use the utility like this:
SetWorkingSet PID [Min Max]
Last updated: 29 Oct 2012
I've found this a surprisingly useful test program for exercising the ShellExecute(Ex) APIs. It lets you easily test how an application behaves with different verbs.
As you can see from the screenshot, there are 4 string UI fields that correspond to the 4 string parameters of the Windows ShellExecute API, and the fifth UI field allows you to choose one of the SW_* values.
This program is useful for testing applications against low-disk space situations.
You can configure how much free space to leave on a drive, or alternatively, you can set the size of the hog file.
This REG file adds the registry settings for several commonly used source file extensions so that the Explorer search facility works as you'd expect under Windows XP.
You'll need to close and restart Explorer after merging the file. Depending on your Explorer "launch folder windows in a separate process" setting, it may be easiest just to log off and back on again.
Copyright © JD Design www.jddesign.co.uk 1996-2012