Latite Scripting Documentation (Exports)
Exports > native/NativeModule > NativeModule
Class
A class representing a native DLL.
Source: native/NativeModule.d.ts:6
new NativeModule():
NativeModule
readonlyhandle:number
The current handle of the module. Warning: will be truncated to Float64
Source: native/NativeModule.d.ts:20
call( functionName:
string, returnType:NativeType, ...args:any[]):undefined|number
Calls a function.
This method is restricted to prevent cheating.
Every argument is passed as a little-endian integer. There may be precision loss when passing in numbers larger than Number.MAX_SAFE_INTEGER.
Strings passed in will be treated as wstrings (wide strings)
Source: native/NativeModule.d.ts:35
| Parameter | Type | Description |
|---|---|---|
| functionName | string |
The procedure name. |
| returnType | NativeType |
The return type that is expected. |
| ...args | any[] |
Arguments to pass to the function. The maximum arguments is 15. |
undefined | number
Staticget(moduleName:string):null|NativeModule
Gets a module that's currently loaded.
The plugin needs the permission Permission.SystemAccess to use this.
This method is restricted to prevent cheating.
Source: native/NativeModule.d.ts:15
| Parameter | Type | Description |
|---|---|---|
| moduleName | string |
The module name, e.g. "User32.dll" |
null | NativeModule