A class representing a native DLL.

Hierarchy

  • NativeModule

Constructors

Properties

Methods

Constructors

Properties

handle: number

The current handle of the module. Warning: will be truncated to Float64

Methods

  • 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)

    Parameters

    • functionName: string

      The procedure name.

    • returnType: NativeType

      The return type that is expected.

    • Rest ...args: any[]

      Arguments to pass to the function. The maximum arguments is 15.

    Returns undefined | number

  • Gets a module that's currently loaded.

    The plugin needs the permission Permission.SystemAccess to use this.

    This method is restricted to prevent cheating.

    Parameters

    • moduleName: string

      The module name, e.g. "User32.dll"

    Returns null | NativeModule

Generated using TypeDoc