Tcl Windows API V2.0 overview


The Tcl Windows API (TWAPI) extension provides access to functions in the Windows API from within the Tcl scripting language. The current version of TWAPI supports Windows 2000, Windows XP and Windows Server 2003. For Windows NT 4.0 (SP3 or later), use TWAPI 1.1.5 or earlier releases. Windows Vista is currently untested.

The extension provides access to the Windows API at two levels:

  • a raw interface to the supported Windows API is provided where the Tcl commands directly map to Windows functions. Programmers who are familiar with the Win32 API and prefer to do things the hard way may prefer to use this interface.
  • a more convenient and powerful higher level interface that makes the API much more accessible. This is the interface documented in the remaining sections.


The TWAPI extension may be loaded through a package require twapi command.

All commands installed by this extension fall under the twapi:: namespace.


Copyright © 2003-2007 Ashok P. Nadkarni

Tcl Windows API 2.0.12 Privacy policy