IDLLAccessProcess Object

Applies to TestComplete 14.72, last modified on January 20, 2021


Before you load DLLs and call their routines from your script, you can define an environment for DLLs with the same “bitness” (that is an environment for all 32-bit or for all 64-bit DLLs which you will use in your script). Such an environment corresponds to the hosting process (tcHostingProcess.exe) into which TestComplete loads the needed dynamic link libraries with appropriate “bitness”. TestComplete can create one 32-bit hosting process for 32-bit libraries and one 64-bit hosting process for 64-bit DLLs. So, you can define one 32-bit and one 64-bit environment for these hosting processes. See Specifics of Using 32- and 64-bit DLLs for more information.

IDLLAccessProcess is an auxiliary object that is returned by the DLL.DefineEnvironment or DLL.DefineEnvironmentByDLL method and is used to access such an environment. IDLLAccessProcess provides methods for defining DLL types, loading the required DLLs in memory, defining custom data types and creating new instances of these types to pass them through parameters of functions called from scripts. For detailed information on these operations, see Calling DLL Functions From Tests - Tutorial.

IDLLAccessProcess objects can be created only if the DLLAccess plugin is installed.



To view an example that demonstrates how to use this object and its methods, see the Specifics of Using 32- and 64-bit DLLs help topic.

See Also

DLL Object
Calling DLL Functions From Tests
Calling DLL Functions From Tests - Tutorial
Specifics of Using 32- and 64-bit DLLs

Highlight search results