IntControl

Internal control functions.

Syntax:

IntControl (request#, p1, p2, p3, p4)

Parameters:

(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).

Returns:

(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.

Complete List of Internal Controls

 

IntControl (1, p1, p2, p3, p4)

Just a test IntControl. It echoes back p1 & p2 and p3 & p4 in a pair of
message boxes.

IntControl (4, p1, 0, 0, 0)

Controls whether or not the Dialog box with a file-list box must have an item selected or not.

IntControl (5, p1, 0, 0, 0)

Controls whether system & hidden files or directories are seen and processed.

IntControl (12, p1, p2, 0, 0)

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.

IntControl (20, 0, 0, 0, 0)

Returns window handle of current parent window. (Similar to DllHwnd)

IntControl (21, p1, 0, 0, 0)

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"

IntControl (26, 0, 0, 0, 0)

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.

IntControl (28, p1, 0, 0, 0)

Selects system font used in list boxes.

IntControl(29, p1, 0, 0, 0)

Changes the default file delimiter.

IntControl(30, p1, p2, 0, 0)

Performs a delayed file move.

IntControl(31, p1, 0, 0, 0)

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".

IntControl(33, p1, 0, 0, 0)

Controls whether a listbox control in a dialog box allows multiple items to be selected.

IntControl(34, p1, p2, 0, 0)

Returns the error message string which corresponds to the specified WIL error.

IntControl(35, p1, p2, 0, 0)

Slows down SendKey and/or mouse clicks.

IntControl(36, p1, p2, 0, 0)

Waits until an application is waiting for user input.

IntControl(37, p1, p2, p3, 0)

Replaces the specified icon in an EXE file.

IntControl( 38, p1, p2, 0, 0)

Sets quiet mode.

IntControl(39, p1, 0, 0, 0)

Sets the file sharing mode for file reads.

IntControl (40, p1, 0, 0, 0)

Sets the file sharing mode for file writes.

IntControl (41, p1, 0, 0, 0)

Controls YmdHms format returned by time functions.

IntControl (42, p1, 0, 0, 0)

Get the pointer to a binary buffer.

IntControl (43, p1, 0, 0, 0)

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.

IntControl (44, p1, 0, 0, 0)

Returns class name for specified window handle.

IntControl(45, p1, 0, 0, 0)

Enable/disable "SendKey speedup" in DOS programs in Windows NT.

IntControl (46, p1, 0, 0, 0)

Sets window retry timeout.

IntControl (47, p1, 0, 0, 0)

Closes another WinBatch program.

IntControl (49, p1, p2, 0, 0)

Adds system menus to WIL popup windows.

IntControl (50, p1, p2, 0, 0)

Controls whether "Go to web page" button is added to WIL error boxes.

IntControl (51, p1, 0, 0, 0)

Specifies flags for CreateProcess.

IntControl (53, p1, 0, 0, 0)

Set line terminator type for FileWrite.

IntControl (54, p1, p2, 0, 0)

Keep window on top.

IntControl (56, p1, p2, p3, 0)

Terminate an application.

IntControl (58, p1, 0, 0, 0)

Set system time.

IntControl (59, p1, p2, 0, 0)

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.

IntControl (60, p1, p2, 0, 0)

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.

IntControl (61, p1, 0, 0, 0)

Sets WinActivate() method.

IntControl (62, p1, 0, 0, 0)

Sets dialog activation method.

IntControl (63, p1, p2, p3, p4)

Sets coordinates for AskFileText, AskItemList, and AskTextBox windows.

IntControl (64, 0, 0, 0, 0)

Gets the exit code returned by the last program run.

IntControl (65, 0, 0, 0, 0)

Sets maximum line length for FileRead.

IntControl (66, 0, p2, 0, 0)

Logs the user out of the current session

IntControl (67, 0, p2, 0, 0)

Initiates a system reboot.

IntControl (68, 0, p2, p3, 0)

Initiates a system shutdown, awaiting power off.

IntControl (69, p1, p2, 0, 0)

Suspends machine by shutting power down.

IntControl (70, p1, p2, 0, 0)

Set delay after WinWait[..] functions.

IntControl (71, p1, p2, 0, 0)

Dump WIL and extender function tables to the debug log file.

IntControl(72, p1, p2, p3, 0)

Sets Cancel handler.

IntControl(73, p1, p2, p3, 0)

Sets Error handler.

IntControl(74, p1, 0, 0, 0)

Set idle wait after Run commands.

IntControl(75, p1, 0, 0, 0)

Gets last dialog coordinates.

IntControl(76, p1, 0, 0, 0)

Sets the computer name.

IntControl(77, p1, 0, 0, 0)

Gets internal operating parameters.

IntControl(78, p1, p2, 0, 0)

Frees a single or all UDF/UDS.

IntControl (79, p1, p2, p3, 0)

Causes a user-defined error.

IntControl (80, 0, 0, 0, 0)

Waits until no keys on the keyboard are pressed.

IntControl (81, p1, 0, 0, 0)

Sets seed for the Random() function.

IntControl (82, p1, 0, 0, 0)

Sets seed for the Random() function.

IntControl (84, p1, 0, 0, 0)

Itemize desktops, or windows on specified desktop.

IntControl (87, p1, 0, 0, 0)

Sets Execute recovery mode.

IntControl (91, p1, 0, 0, 0)

Sets file mask matching mode.

IntControl (92, operation, value, 0, 0)

Enable or disable file system redirection. (64-bit Windows only)

IntControl(93, p1, p2, p3, 0)

Performs certificate operations.

IntControl (94, p1, 0, 0, 0)

Returns the real file handle corresponding to a WIL file handle.

IntControl (96, 0, 0, 0, 0)

Frees all resource associated with all callback handles created by the 'DllCallbackCreate' function.

IntControl (97, 0, 0, 0, 0)

Frees all resource associated with all Dll Structure handles created by the 'DllStructAlloc' function.

IntControl (98, p1, p2, 0, 0)

Obtain information about a DLL structure handle.

IntControl (99, p1, 0, 0, 0)

Unloads a previously added extender.

IntControl (100, p1, 0, 0, 0)

Sets minimum map lookup table size.

IntControl (102, p1, 0, 0, 0)

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.

IntControl (1004, 0, 0, 0, 0)

Returns the full path and file name of the current WinBatch program.

IntControl (1006, 0, 0, 0, 0)

Returns the un-parsed WinBatch command line.

IntControl (1007, p1, p2, p3, p4)

Add/remove/check tray icon.

IntControl(1008, p1, 0, 0, 0)

Enables/disables Close command.

IntControl (1009, p1, 0, 0, 0)

Gets name of current service.