WiseScript Editor Reference
40
z
Get Last Error Variable
When you call a Windows API function that uses the GetLastError() function to
report errors, select a variable to hold the return value of that function. Doing so
ensures that GetLastError() is called immediately following your function to prevent
problems that can occur when you debug the WiseScript.
z
Keep DLL loaded in memory after returning from function
By default, the Call DLL Function action loads a .DLL, calls a function in that .DLL,
and then unloads the .DLL. If you call many functions from a certain .DLL, then the
unload is unnecessary and can cause problems with certain .DLLs. To leave this .DLL
loaded, check this check box.
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.
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.
See also:
Passing Complex Structures to a .DLL: An Example
on page 42
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
Содержание ALTIRIS INVENTORY 7.0 SP2 - FOR NETWORK DEVICES V1.0
Страница 1: ...WiseScript Editor Reference ...
Страница 31: ...WiseScript Editor Reference 31 ...
Страница 91: ...WiseScript Editor Reference 91 ...
Страница 148: ...WiseScript Editor Reference 148 ...