We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
5,208 Software Downloads

WinAPIExec 1.0

WinAPIExec is a tiny but very powerful tool which allows you to run Windows API functions from the command line, giving your scripts access to all kinds of powerful functionality.

If you're not a programmer then figuring out how to use this will be far from straightforward, but fortunately the program comes with some interesting examples to give you some idea.

To eject your CD ROM, for instance, you'd use this (all commands must be entered on one line):
winapiexec.exe winmm.dll@mciSendStringW "open cdaudio" 0 0 0 , winmm.dll@mciSendStringW "set cdaudio door open" 0 0 0 , winmm.dll@mciSendStringW "close cdaudio" 0 0 0

This command programmatically displays the Start menu:
winapiexec.exe u@SendMessageW ( u@FindWindowW Shell_TrayWnd 0 ) 0x111 305 0

You get considerable control over processes. This line launches Notepad, pauses for 5 seconds, then closes it:
winapiexec.exe CreateProcessW 0 notepad 0 0 0 0x20 0 0 $a:0x44,,,,,,,,,,,,,,,, $b:16 , Sleep 5000 , TerminateProcess $$:11@0 0

You're able to collect and display useful Windows-related information. This line shows you the current Temp path, for instance:
winapiexec.exe GetTempPathW 260 $b:520 , u@MessageBoxW 0 $$:3 $$:0 0x40

There are several other useful examples in the program's readme.txt file. And these are just the beginning: once you understand how the program works, then you can quickly come up with others to do a whole lot more.

Platforms: Windows 7 (32 bit), Windows 7 (64 bit), Windows Vista (32 bit), Windows Vista (64 bit), Windows XP
Version: 1.0
Licence: Freeware
Manufacturer: RaMMicHaeL
Date Added: {ts '2011-07-13 22:14:00'}


IDG UK Sites

Sony Xperia Z3 Compact review: A better deal than the Z3 and most smartphones

IDG UK Sites

Why people aren't upgrading to iOS 8: new features are for power users, not the average Joe

IDG UK Sites

Framestore recreates ancient China for Mr Bean's martial arts misadventure

IDG UK Sites

iPad Air 2 review: Insanely fast and alarmingly thin. Speed tests, camera tests and more