Инструменты пользователя

Инструменты сайта


en:autorun:documentation:loadlibrary

LoadLibrary

LoadLibrary [/U] <dll> [<function>]

Command that loading a dynamic library or pligin.

Parameters

dllDynamic library name. May contain variables and environment variables. Also, paths can be relative to the path where configuration file placed.
functionFunction that will be executed immediately after loading the library. Function should not have parameters and return a result.

Switches

/Udll will be unloaded immediately after loading and executing function (if set).

Remarks

Note, that under 64-bit version you can load 64-bit libraries and plugins only, under 32-bit varsion — correspondingly 32-bit libraries.

For simplicity plugin using and using single config file in different TC versions, for 64-bit verions implicit loading used (similarly to TC plugins). For that 64-bit version of plugin should have «dll64» extension. In configuration «dll» extension using.

Using the ModifyDialogs plugin as an example:

LoadLibrary "Plugins\Autorun_ModifyDialogs.dll"

Under the 32-bit version of TC, the Autorun_ModifyDialogs.dll library will be loaded, under the 64-bit one — Autorun_ModifyDialogs.dll64.

en/autorun/documentation/loadlibrary.txt · Последнее изменение: 2022/09/25 16:40 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki