ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous Windows functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
APIConfigure (Function)
In french: APIParamètre
Warning
From version 28, APIParameter is kept for backward compatibility. This function is replaced by APIConfigure.
Modifies the options for calling API and CallDLL32.
By default:
  • API and CallDLL32 do not lock the other threads.
  • If the API function called modifies the system regional settings, the previous regional settings are restored.
APIConfigure is used to configure the default behavior of these functions.
Example
// Lock the threads
APIConfigure(apiLockThreads, True)
 
// Don't restore the regional settings
APIConfigure(apiRestoreSystemSettings, False)
Syntax

Finding out the value of an option for API and CallDLL32 Hide the details

<Result> = APIConfigure(<Option>)
<Result>: Boolean
Value of the requested option:
  • True if the requested option is enabled,
  • False otherwise.
<Option>: Integer constant
Parameter whose value is requested:
apiLockThreadsUsed to find out whether API or CallDLL32 locks the threads during its execution.
This option is disabled by default.
apiRestoreSystemSettingsUsed to find out whether API or CallDLL32 restores the regional system settings (language, display of decimals, ...) after the execution of the Windows API.
This option is enabled by default.

Modifying the value of an option for API and CallDLL32 Hide the details

<Result> = APIConfigure(<Option> , <Value>)
<Result>: Boolean
  • True if the requested option was enabled before using APIConfigure,
  • False if the requested option was not enabled before using APIConfigure.
<Option>: Integer constant
Parameter whose value must be modified:
apiLockThreadsIf <Value> is set to True, the threads are locked during the execution of API and CallDLL32.
If <Value> is set to False, the threads are not locked during the execution of API and CallDLL32.
This option is disabled by default.
apiRestoreSystemSettingsIf <Value> is set to True, the regional system parameters (language, display of decimals, ...) are restored after the execution of the Windows API.
If <Value> is set to False, the regional system parameters (language, display of decimals, ...) are not restored after the execution of the Windows API. In this case, the modifications will be stored if these parameters are modified by the Windows API.
This option is enabled by default.
<Value>: Boolean
Value of the requested option:
  • True if the requested option must be enabled,
  • False otherwise.
Component: wd290vm.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/29/2023

Send a report | Local help