Using DLL Support Files Installed with Silk Test Classic

Silk Test Classic is installed with the following include files that contain all the declarations, data types, and constants necessary for you to call hundreds of functions within the Windows API from your scripts.

msw32.inc

Contains use statements for the include files that apply to 32-bit Windows: mswconst.inc, mswtype.inc, mswfun32.inc, mswmsg32.inc, and mswutil.inc.

By including msw32.inc in your 4Test scripts, you have access to all the information in the other include files.

Note: The DLL functions declared in the files included in msw32.inc are aliased to the W (wide-character) functions.
mswconst.inc
Declares constants you pass to DLL functions. These constants contain style bits, message box flags, codes used by the GetSystemMetrics function, flags used by the GetWindow function, window field offsets for the GetWindowLong and the GetWindowWord functions, class field offsets for the GetClassLong and GetClassWord functions, and menu function flags.
mswfun32.inc
Contains 4Test declarations for 32-bit functions in the user32.dll and kernel32.dll files. The mswfun32.inc file provides wide character support. This means that you no longer have to edit mswfun32.inc in order to call Windows DLL functions. See the description of mswfun32.inc in the Dll declaration section.
mswmsg32.inc
Declares 32-bit Microsoft Window messages, control messages, and notification codes.
mswtype.inc
Declares many data types commonly used in the Windows API.
mswutil.inc
Contains the following utility functions:
  • PrintWindowDetail
  • GetStyleBitList
  • PrintStyleBits