registry: list keys/values via DllCall

Post your working scripts, libraries and tools
User avatar
jeeswg
Posts: 2240
Joined: 19 Dec 2016, 01:58
Location: UK

registry: list keys/values via DllCall

11 Oct 2017, 19:26

I had wanted AutoHotkey to be able retrieve keys (and values) in alphabetical order. Another potential use for this is to retrieve data from value types that AutoHotkey can't handle.

I also think it's good to know how AutoHotkey's commands/functions work in case you ever need similar functionality in another programming language.

Note: I seem to be getting a list of keys that almost exactly matches RegEdit when it exports keys to a reg file. However, occasionally some keys are missing either from this script's list or RegEdit's list.

Btw does anyone know of any dll functions or any good examples of code for creating reg files? I don't really need this myself, although it seems like a potentially useful thing to do if AutoHotkey could generate reg files when given a path to a registry key.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



LINKS:
Creating a Windows registry key with no default value (NOT blank) using AutoHotkey - Stack Overflow
http://stackoverflow.com/questions/26956332/creating-a-windows-registry-key-with-no-default-value-not-blank-using-autohotk
RegRead64() and RegWrite64() - no redirect to Wow6432Node - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/36290-regread64-and-regwrite64-no-redirect-to-wow6432node/
create empty registry key - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26245

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Bing [Bot] and 10 guests