View articles in ‘System Tips’ Category


sf

How to get the current drive letter

How to get the current drive letter

sf

How to get info on memory usage from a given process

How to get info on memory usage from a given process

sf

How to retrieve Environmental Variables as strings by name

This code is very useful if you need to "translate" various environmental variables. I use this a lot to get paths to TEMP or windows folders on different systems.

sf

How to detect if the program is running inside VMWare

This function can be used to determine whether your program is running from within VMWare. For more information please refer to the article at: http://www.codeproject.com/system/VmDetect.asp

sf

How to change the local/remote/active directory system group policy

For win2k, xp or higher

sf

How to switch the XP startpanel to classic or XP style

How to switch the XP startpanel to classic or XP style

sf

How to detect memory leaks

How to detect memory leaks

sf

How to export a big const from a DLL

First you declare the type of the const and second you define a wrap function around the type

sf

How to check, if a process is running

How to check, if a process is running

sf

How to realize a MultiSelect in ShellListView

ShellListView does not have a files property (common in dialogs eg TOpendialog), therefore we have to cycle through each item to find out whether the item is selected or not. Use this function to obtain a list of selected files in a ShellListView: