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.
// 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: | | apiLockThreads | Used to find out whether API or CallDLL32 locks the threads during its execution. This option is disabled by default. | apiRestoreSystemSettings | Used 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: | | apiLockThreads | If <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. | apiRestoreSystemSettings | If <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.
This page is also available for…
|
|
|
|