Viewing topic 'Windows API Calls'. Description: Code snipets that show how to use the Windows API. Back to topic list
Getting computer up time [Viewed 8014 times | Rated 1/5 | Author: thread]
A demonstration of how to get a hold of how long your computer has been switched on.
Another way to make the computer beep. [Viewed 7178 times | No Rating | Author: eAi]
This shows you how you can make a beep come out of the system speaker, and set the frequency of it too. This uses the Beep API.
Move the windows mousepointer using win32api [Viewed 7016 times | No Rating | Author: Tim Schumacher]
This code will move the mouse pointer on behalf of the user, you can click on a commandbutton and the mouse pointer will jump to another command button on the form
Terminate a Windows Task [Viewed 7414 times | No Rating | Author: Tim Schumacher]
Using the applications window title - terminate any windows application.
Disabling CTRL+ALT+DEL [Viewed 6537 times | No Rating | Author: Damien]
A simple code to disable this System Keys... (Only works with Win9x)
Detect when a program closes [Viewed 6066 times | Rated 2/5 | Author: Ducks]
Pauses your app untill a prorgam terminates, then carries on.
Lock an XP or 2K workstation [Viewed 7666 times | Rated 2/5 | Author: cryax]
Possibly the simplest piece of code on here but never the less, to lock up a workstation in XP or 2K
How to show the 'Select a Folder' box [Viewed 6214 times | Rated 2/5 | Author: eAi]
This shows you the api call that shows the 'Select a Folder' box. You'd think the common dialog thingy would do it, but you'd be wrong.
Box Fill [Viewed 6282 times | Rated 2/5 | Author: eAi]
This peice of code re-creates the filling box effect which can be seen when a visual basic project is being loaded
The Sleep Function (delay) [Viewed 7424 times | Rated 1/5 | Author: Damien]
How to make your program await a certain amount of miliseconds
How to check if a key or keys are down [Viewed 7100 times | Rated 1/5 | Author: eAi]
Shows you how you can check the status of multiple keys at once using the GetKeyState api
How to simulate a key press [Viewed 6289 times | Rated 2/5 | Author: eAi]
Shows you how you can use API to simulate a key press.
How to show the run dialog [Viewed 6158 times | Rated 1/5 | Author: eAi]
Shows you how you can show the Run dialog (as in Start -> Run)
Open/Close CDROM [Viewed 6518 times | Rated 1/5 | Author: kvirri]
Eject and inject CDROM
All about API [Viewed 6246 times | No Rating | Author: eAi]
This tells you how you can get started in the wonderful world of Windows API
Get user name [Viewed 7076 times | Rated 1/5 | Author: acidscar]
How to get the current username
Simulate a mouse click [Viewed 6754 times | Rated 1/5 | Author: eAi]
This shows you how you can use the mouse_even api to simulate a mouse click.