win.registry
module ‘win.registry’
Source file: prog/gameLibs/quirrel/win_registry/win_registry.cpp
Usage:
let { regKeyExists, regValueExists, getRegString, getRegInt, deleteRegKey, deleteRegValue, setRegString, setRegInt, HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS } = require("win.registry")
or:
from "win.registry" import *
//'win.registry' exports:
{
function regKeyExists(root, path): integer, string -> bool
function regValueExists(root, path, name): integer, string, string -> bool
function getRegString()
function getRegInt(root, path, name, def): integer, string, string, integer -> integer
function deleteRegKey(root, path): integer, string -> bool
function deleteRegValue(root, path, name): integer, string, string -> bool
function setRegString(root, path, name, val): integer, string, string, string -> bool
function setRegInt(root, path, name, val): integer, string, string, integer -> bool
value HKEY_CLASSES_ROOT
value HKEY_CURRENT_CONFIG
value HKEY_CURRENT_USER
value HKEY_LOCAL_MACHINE
value HKEY_USERS
}
- function regKeyExists(root, path)
- Arguments:
root (
integer()
) –path (
string()
) –
- Returns:
bool
- function regValueExists(root, path, name)
- Arguments:
root (
integer()
) –path (
string()
) –name (
string()
) –
- Returns:
bool
- function getRegString()
- function getRegInt(root, path, name, def)
- Arguments:
root (
integer()
) –path (
string()
) –name (
string()
) –def (
integer()
) –
- Returns:
integer
- function deleteRegKey(root, path)
- Arguments:
root (
integer()
) –path (
string()
) –
- Returns:
bool
- function deleteRegValue(root, path, name)
- Arguments:
root (
integer()
) –path (
string()
) –name (
string()
) –
- Returns:
bool
- function setRegString(root, path, name, val)
- Arguments:
root (
integer()
) –path (
string()
) –name (
string()
) –val (
string()
) –
- Returns:
bool
- function setRegInt(root, path, name, val)
- Arguments:
root (
integer()
) –path (
string()
) –name (
string()
) –val (
integer()
) –
- Returns:
bool
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_CONFIG
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
/;
module_mgr->addNativeModule(“win.registry”, win_registry);
}
} // namespace bindquirrel