Parameters
- name
- Variable name.
- value
- Variable value.
- fieldType
- Variable type, that has to be a valid value of the LlFieldType Enumeration.
The API function LlDefineVariableExtHandle is represented by the AddFromHandle method. Here, you can pass a handle in the form of an IntPtr. It is also possible to determine the description of the desired data type. Generally, it is the LlFieldType.Drawing_hBitmap.
Remark: This method should be used only in special situations, such as connecting with Win32 API, if, for example, a component with unmanaged code delivers such a handle. In other cases, you can directly enter the respective Bitmap. The basic abstract class Image also supports a static method FromHBitmap, with the help of which an instance of the Bitmap class can be indicated on the basis of a handle.
Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9