background image
<< Calling DLL Aliasing a DLL name | Calling DLL Passing arguments to DLL functions >>
Calling DLL Using DLL support files installed with SilkTest
<< Calling DLL Aliasing a DLL name | Calling DLL Passing arguments to DLL functions >>
User's Guide
427
24 C
ALLING
W
INDOWS
DLL
S
F
ROM
4T
EST
S
CRIPTS
Using DLL support files installed with SilkTest
Using DLL support files installed with SilkTest
SilkTest 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. These files are:
Include file
Description
msw.inc
Contains use statements for the include files that apply to
16-bit Windows: mswconst.inc, mswtype.inc,
mswfuncs.inc, mswmsg.inc, and mswutil.inc.
By including this one file in your 4Test scripts, you have
access to all the information in the other include files.
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 this one file in your 4Test scripts, you have
access to all the information in the other include files.
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.
mswfuncs.inc
Contains 4Test declarations for 16-bit functions in the
user.exe, krnl386.exe, and toolhelp.dll files.
mswfun32.inc
Contains 4Test declarations for 32-bit functions in the
user32.dll and kernel32.dll files.
mswmsg.inc
Declares 16-bit Microsoft Window messages, control
messages, and notification codes.
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.