circu.js
    Preparing search index...

    Function readRegistry

    • Read a single registry value.

      Return type mirrors the registry type:

      • REG_SZ / REG_EXPAND_SZstring
      • REG_DWORDnumber
      • REG_QWORDnumber (JS float64; exact up to 2^53)
      • REG_MULTI_SZstring[]
      • REG_BINARY / other → Uint8Array

      Parameters

      • hive: number

        Root handle, e.g. HKCU

      • key: string

        Subkey path, e.g. 'Software\\MyApp'

      • name: string

        Value name

      Returns RegValue

      const enabled = readRegistry(HKCU,
      'Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings',
      'ProxyEnable') as number; // 0 or 1