node-ctypes - v2.10.0
    Preparing search index...

    Interface LibraryOptions

    Options passed to the CDLL/WinDLL/OleDLL constructor.

    interface LibraryOptions {
        mode?: number;
        winmode?: number;
        cacheSize?: number;
        use_last_error?: boolean;
        use_errno?: boolean;
    }
    Index
    mode?: number

    dlopen flags combined with RTLD_NOW (e.g. RTLD_GLOBAL). Ignored on Windows. Default: DEFAULT_MODE.

    Python ctypes parity: the mode argument of CDLL(name, mode).

    winmode?: number

    LoadLibraryExW flags (Windows only). Default: LOAD_LIBRARY_SEARCH_DEFAULT_DIRS, plus LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR (with the path made absolute) when the name contains a path separator.

    Python ctypes parity: the winmode argument of CDLL(name, winmode=...).

    cacheSize?: number

    Maximum size of the internal function cache. Default: 1000.

    use_last_error?: boolean

    If true, each call through this library snapshots GetLastError() immediately after ffi_call returns, so subsequent JS code cannot clobber it before the user reads it via CDLL.get_last_error.

    Python ctypes parity: use_last_error=True on CDLL/WinDLL.

    use_errno?: boolean

    If true, each call through this library snapshots errno immediately after ffi_call returns. Read back via CDLL.get_errno.

    Python ctypes parity: use_errno=True on CDLL.