background image
<< Bitmap Tool -How to apply a mask | Calling DLL Aliasing a DLL name >>
Calling Windows DLLs From 4Test Scripts
<< Bitmap Tool -How to apply a mask | Calling DLL Aliasing a DLL name >>
User's Guide
425
24
C
h
a
p
t
e
r
2
4
Calling Windows DLLs From
4Test Scripts
What you will learn
This chapter explains how to call a DLL from within a 4Test script. The
chapter covers these topics:
Declaring a DLL function
The following 4Test code declares a DLL function named MemManInfo. It
takes a single out parameter named MemManInfo of type
MEMMANINFO
,
and returns a boolean value.
dll "toolhelp.dll"
BOOL MemManInfo (out MEMMANINFO MemManInfo)
As this example shows, a declaration for a DLL begins with the keyword dll.
The general format is:
dll dllname.dll
prototype
[prototype]...
Topic
Page
Declaring a DLL function
425
Aliasing a DLL name
426
Using DLL support files installed with SilkTest
427
Passing arguments to DLL functions
428