Logo Xanthos

ComClientFactory Module

Functions and values

Function or value Description

isComAvailable ()

Full Usage: isComAvailable ()

Parameters:
    () : unit

Returns: bool
() : unit
Returns: bool

tryCreate useJvGets

Full Usage: tryCreate useJvGets

Parameters:
    useJvGets : bool option - Optional flag to use JVGets API instead of JVRead. When None, falls back to environment variables (XANTHOS_USE_JVREAD opt-out, XANTHOS_USE_JVGETS legacy).

Returns: Result<IJvLinkClient, ComFault> Ok with the client on success, or Error with details on failure.

Attempts to create a COM-backed JV-Link client.

Windows resolves the COM registration matching the current process architecture. Install the x64 JV-Link server for an x64 process, or x86 for an x86 process.

Activation failures are returned explicitly; this function never creates a stub.

useJvGets : bool option

Optional flag to use JVGets API instead of JVRead. When None, falls back to environment variables (XANTHOS_USE_JVREAD opt-out, XANTHOS_USE_JVGETS legacy).

Returns: Result<IJvLinkClient, ComFault>

Ok with the client on success, or Error with details on failure.

Type something to start searching.