# Run DLL

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-others/run-dll
>
> Calls a function in a DLL with stdcall or cdecl convention, passing arguments and storing the return value; Windows Desktop can use C/C++ DLLs.

Executes a specified function on a specified DLL.

Action available for the following operating systems:

![OS Supported: Android, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/06_Supported_OS_android_oldWin-b37b1a82bfa2a9c6b6b0d2e802182f6c.png)

### Parameters

_DLL_

* **DLL ID** _\<numeric> -_ If the user previously loaded the DLL file that he wants to run, he just enter here the numeric identification of the loaded DLL.
* **DLL File** _\<string> -_ Defines the full path and name of the DLL file that the user wants to run. If the user already have loaded the DLL file, he don't fill this parameter.
* **Function** _\<string> -_ The name of the DLL function that the user wants to run.
* **Calling Convention** _\<unquoted string> -_ The calling convention of the function. The possible parameters are:
  * stdcall
  * cdecl
  * dynamic

_Target_

* **Type** _\<unquoted string> -_ The type of the returned value by the DLL function.
* **Pointer** _\<unquoted string> -_ Defines if the user wants to return a pointer to the returned value.
* **Target** _\<unquoted string> -_ The control or variable to save the returned value by the DLL function.

_Args_

* **Struct** _\<unquoted string> -_ Defines if the argument is a structure or not.
* **Type** _\<unquoted string> -_ Defines the type of the argument.
* **Pointer** _\<unquoted string> -_ Defines if the argument is a pointer or not.
* **Buffer Size** _\<numeric> -_ Defines the buffer size.
* **Argument** _\<unquoted string> -_ Defines the value of the argument.

:::info
Windows Desktop (Win32, Windows 10/11) can use C/C++ DLLs
:::

:::info
Notes for Android:

* Android C libraries can be used in this case (.so files).
* **HANDLE** type parameters are available only for the **Form**. It will return the current **Activity** as a **jobject.**
* **HWND** type parameters are available for the **Form** and it returns a **ViewGroup** as a **jobject** containing Kalipso Controls and you can add new **View**s to it. It is also available for **Control** and in this case it will return the top level **View** associated with the Kalipso Control as a **jobject**.
* For **HANDLE** and **HWND** if a **dynamic source** is specified and a string "JNIENV" is passed, Kalipso will return the current **JNIEnv\*** to use with JNI.
* **HDC** type parameters are not available.
:::
