WinReg.jl

Windows Registry interface for Julia
Popularity
1 Star
Updated Last
2 Years Ago
Started In
April 2016

WinReg.jl

Build status

Julia interface to the Windows registry.

Usage

At the moment, this just exports one function, querykey, which queries the Windows registry.

querykey(base, path, valuename)

where

  • base is one of the base paths:

  • WinReg.HKEY_CLASSES_ROOT

  • WinReg.HKEY_CURRENT_USER

  • WinReg.HKEY_LOCAL_MACHINE

  • WinReg.HKEY_USERS

  • WinReg.HKEY_PERFORMANCE_DATA

  • WinReg.HKEY_CURRENT_CONFIG

  • WinReg.HKEY_DYN_DATA

  • path is the the path from base to the desired key

  • valuename is the name of the value to retrieve

Example

using WinReg

querykey(WinReg.HKEY_LOCAL_MACHINE,"System\\CurrentControlSet\\Control\\Session Manager\\Environment","PROCESSOR_ARCHITECTURE")

Usage within a package

WinReg.jl should only be loaded on Windows OSes (though it is safe to install on other OSes). Suggested usage:

@static if VERSION < v"0.7.0-DEV.914" ? is_windows() : Sys.iswindows()
    using WinReg # or import WinReg

    # code calling WinReg functionality goes here
end

Requests

If further functionality is required, please open an issue.

Required Packages

No packages found.