WiseScript Package Editor Reference
49
WiseScript Actions
z
Hide progress bar before calling function
If the .DLL has UI, you can us this to hide the progress bar.
If you write a .DLL, use CALLBACK or WINAPI in the declaration of the .DLL.
For help with .DLL development, review sample source code, such as GETCPU32.C, in
the DLL subdirectory of this product’s installation directory. Also included is sample
source code for C and Delphi .DLLs written for WiseScript.
Calling Visual Basic ActiveX controls is not supported.
The sample scripts Application kill.wse, CheckDiskSpace.wse, Color.wse, and
Prompt.wse use this action. For details on sample scripts, see ScriptHelp.htm in the
Samples subdirectory of this product’s installation directory.
DLL Parameter Settings
The DLL Parameter Settings dialog box appears when you add a new parameter to a Call
DLL Function action. Add parameters in the order in which they appear in the .DLL’s
function prototype.
To complete the dialog box
z
Parameter Type
Check the table below for alternate names for data types.
WiseScript
Corresponds to Win32
SDK type
Corresponds to
Visual Basic
type
Description
short
SHORT
Integer
16-bit, signed integer data type
word
WORD
Integer
16-bit, unsigned integer data type
long
LONG, LRESULT, BOOL
Long, Boolean
32-bit, signed integer data type
dword
DWORD (Use this for any
parameter type that begins
with an “H” or ends with the
word “HANDLE,” such as
HWND, HANDLE, HPEN,
HFONT, and LPHANDLE.)
Long
32-bit, unsigned integer data type
string pointer
Use for any parameter that
ends in STR such as LPSTR
and LPTSTR.
Long
32-bit pointer to an ANSI character
type null terminated string
short pointer
Pointer to SHORT or SHORT*
(use for PSHORT or LPSHORT)
Long
32-bit pointer to a SHORT data type
(see SHORT for the reference to this
data type)
word pointer
Pointer to WORD or WORD*
(use for PWORD or LPWORD)
Long
32-bit pointer to a WORD data type
(see WORD for the reference to this
data type)
long pointer
Pointer to LONG or LONG*
(use for PLONG or LPLONG)
Long
32-bit pointer to a LONG data type
(see LONG for the reference to this
data type)