Internal control functions.
IntControl (request#, p1, p2, p3, p4)
(i) request# specifies which sub-function is to be performed
(see below).
(s) p1 - p4 parameters which may be required by the function}
(see below).
(s) varies (see below).
Short for Internal Control, a special function that permits numerous internal operations in the various products. The first parameter of IntControl defines exactly what the function does, while the other parameters are possible arguments to the function.
Refer to your product documentation for any further information on this function.
Warning: Many of these operations are useful only under special circumstances, and/or by technically knowledgeable users. Some could lead to adverse side effects. If it isn't clear to you what a particular function does, don't use it.
IntControl (1, p1, p2, p3, p4)
Just a test IntControl. It echoes back p1 & p2 and p3 & p4 in a pair of
message boxes.
Controls whether or not the Dialog box with a file-list box must have an item selected or not.
Controls whether system & hidden files or directories are seen and processed.
IntControl 12 is used to direct WIL and its parent application (if the parent application supports this function) as to how to handle users either terminating WinBatch via the "Ctrl-Break" keystroke sequence or perhaps a menu item, or by simply exiting windows.
Returns window handle of current parent window. (Similar to DllHwnd)
Returns window handle of window matching the partial window-name in p1.
IntControl (22, p1, p2, p3, p4)
Issues a Windows "SendMessage".
IntControl (23, p1, p2, p3, p4)
Issues a Windows "PostMessage"
Re-assesses the language currently being used and makes any necessary changes to the language strings used by the WIL Interpreter. Normally, this is done at program startup.
Selects system font used in list boxes.
Changes the default file delimiter.
Performs a delayed file move.
Returns "Window ID's" for all Explorer windows.
IntControl(32, address, "data type", operation, s/i:new-value)
Returns or sets the contents of the memory location specified by "address".
Controls whether a listbox control in a dialog box allows multiple items to be selected.
Returns the error message string which corresponds to the specified WIL error.
Slows down SendKey and/or mouse clicks.
Waits until an application is waiting for user input.
Replaces the specified icon in an EXE file.
Sets quiet mode.
Sets the file sharing mode for file reads.
Sets the file sharing mode for file writes.
Controls YmdHms format returned by time functions.
Get the pointer to a binary buffer.
Enable/disable "WaitForInputIdle". This controls whether SendKey , SendKeysTo and SendKeysChild attempt to wait until the active application is ready to accept input before sending each keystroke. Returns the previous setting.
Returns class name for specified window handle.
Enable/disable "SendKey speedup" in DOS programs in Windows NT.
Sets window retry timeout.
Closes another WinBatch program.
Adds system menus to WIL popup windows.
Controls whether "Go to web page" button is added to WIL error boxes.
Specifies flags for CreateProcess.
Set line terminator type for FileWrite.
Keep window on top.
IntControl (56, p1, p2, p3, 0)
Terminate an application.
Set system time.
Sends a WM_WININICHANGE or WM_SETTINGCHANGE message. This IntControl sends a message to one or all application windows, informing them that a change has been made to WIN.INI or to the registry.
Sends a WM_DEVMODECHANGE message. This IntControl sends a message to one or all application windows, informing them that a change has been made to device mode settings.
Sets WinActivate() method.
Sets dialog activation method.
IntControl (63, p1, p2, p3, p4)
Sets coordinates for AskFileText, AskItemList, and AskTextBox windows.
Gets the exit code returned by the last program run.
Sets maximum line length for FileRead.
Logs the user out of the current session
Initiates a system reboot.
Initiates a system shutdown, awaiting power off.
Suspends machine by shutting power down.
Set delay after WinWait[..] functions.
Dump WIL and extender function tables to the debug log file.
Sets Cancel handler.
Sets Error handler.
Set idle wait after Run commands.
Gets last dialog coordinates.
Sets the computer name.
Gets internal operating parameters.
Frees a single or all UDF/UDS.
IntControl (79, p1, p2, p3, 0)
Causes a user-defined error.
Waits until no keys on the keyboard are pressed.
Sets seed for the Random() function.
Sets seed for the Random() function.
Itemize desktops, or windows on specified desktop.
Sets Execute recovery mode.
Sets file mask matching mode.
IntControl (92, operation, value, 0, 0)
Enable or disable file system redirection. (64-bit Windows only)
Performs certificate operations.
Returns the real file handle corresponding to a WIL file handle.
Frees all resource associated with all callback handles created by the 'DllCallbackCreate' function.
Frees all resource associated with all Dll Structure handles created by the 'DllStructAlloc' function.
Obtain information about a DLL structure handle.
Unloads a previously added extender.
Sets minimum map lookup table size.
Sets file registry time functions to return time in UTC.
IntControl (1000, p1, 0, 0, 0)
Sets the exit code returned by WinBatch.
IntControl (1001, p1, 0, 0, 0)
Set service process status.
IntControl (1002, p1, 0, 0, 0)
Sets WinBatch icon display state.
IntControl (1003, p1, 0, 0, 0)
Prevents the WinBatch icon from being opened.
Returns the full path and file name of the current WinBatch program.
Returns the un-parsed WinBatch command line.
IntControl (1007, p1, p2, p3, p4)
Add/remove/check tray icon.
Enables/disables Close command.
IntControl (1009, p1, 0, 0, 0)
Gets name of current service.