Table of Contents
Operating System
Calling DLLs, OCXs and Object Methods
External programs
Operating System
Operating System
Calling DLLs, OCXs and Object Methods
Component Object Model programming
Calling object methods using structures
Calling DLLs that return floats
Calling DLL functions that return strings
Passing floating-point values to DLLs
Using callback functions
External programs
Reading the exit code of a DOS utility
Returning errors from Windows commands
Waiting for an external program to terminate
Operating System
Accessing the fast SYS interface
Adding an event to the event queue
Associating an application with a file type
Avoiding resource leaks
Cascaded ON CLOSE handling
Compatibility with Wine
Converting programs from RISC OS to Windows
Converting Islamic dates
Creating a shortcut
Detecting a second instance of a program
Determining if the user is an administrator
Discovering the system power status
Finding the CPU usage
Finding the current user name
Finding the default national language
Finding the ISO week number
Getting the User Idle time
Installing under wine
Listing other windows and applications
Listing processes
Opening a file by dropping or clicking
Prompting for admin rights
Queueing event interrupts
Reading Environment Variables
Reading the exit code of a DOS utility
Receiving dropped files
Responding to a hot key
Returning errors from Windows commands
Shutting down the PC
Writing console mode programs that will also run in the IDE