BSLib is a collection of miscellaneous code, mostly centering around Win32 declares. Some of the more handy functions are:
Create NTFS hard/soft links and shortcuts
Enumerate and access NTFS alternate data streams
Detect the bus type of a given disk volume (e.g. BusUSB, BusATA)
Locate the first file to match a given name on the system search path
Replace files atomically or schedule replacements on the next system reboot.
Get and set file attributes (archive, system, compressed, encrypted, read only, hidden)
Delete a file on the next reboot
Get a folderitem to the default application for a filename extension.
Exclusively lock and unlock folderitems
Get a TextOutPutStream to a file with specific parameters to CreateFile (e.g. special permissions)
Truncate any folderitem to 0 bytes (faster than deleting for large files that you plan on reusing)
Extract EXE/DLL icon resources to RB pictures
Detect LAN and Internet availability
Check the availability of a particular network location (website, network share, etc.)
Send an ICMP Ping packet to a given host.
Crash Windows (BSOD) if your app quits
Enable, disable and drop security privileges from an RB app's token
Send commands directly to device drivers with DeviceIoControl (buggy)
Shut down, reboot, and log off Windows
Detect the current status of UAC (User Account Control; enabled/disable status, visualization status, detection of "setup.exe" files)
Detect the current boot mode (Normal, safe mode, safe mode with networking)
Capture any region of the screen
Query Explorer settings (e.g. confirm delete, show hidden files, etc.)
Query the OS version, username, administrator status and other system properties
Adjust process affinity and priority
Query the battery/AC power state as well as the battery's estimated remaining charge
More granular control of console output in Win32 console apps (colors!)
Resolve relative path names to absolute path names
Tokenize any string while respecting quotes (e.g. for command lines)
Format degrees, Hz, and bytes in their SI representation