Differences between revisions 11 and 33 (spanning 22 versions)
Revision 11 as of 2008-12-19 07:34:43
Size: 1947
Editor: KaiJaeger
Comment:
Revision 33 as of 2014-12-22 08:29:35
Size: 2662
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

{{{WinReg}}} is part of the CategoryAplApl project.
{{{WinReg}}} is part of the CategoryAplTree project.
Line 8: Line 7:
Line 12: Line 10:
Line 17: Line 14:
[[attachment:EditReg.jpg|{{attachment:EditReg.jpg}}]] [[attachment:EditReg.jpg|{{attachment:EditReg.jpg|attachment:EditReg.jpg}}]]
Line 19: Line 16:
you can see that this string is visible in the top of the window: you can see this string:
Line 23: Line 20:
at the top of the window.
Line 24: Line 23:

This is called a "Main key". There is a particular number of pre-defined main keys available you can choose from. For the most important one from an application programmers view there is also a shortcut available: Instead of '''HKEY_CURRENT_USER''' you can use '''HKCU'''.
This is called a "Main key". There are a number of pre-defined main keys available you can choose from. For the most important one from an application programmers view there is also a shortcut available: instead of '''HKEY_CURRENT_USER''' you can use '''HKCU'''.
Line 28: Line 26:
This is called a '''sub key'''.
Line 29: Line 28:
This is called a '''subkey'''. On the right side you see a list. The entries in this list are called "values". Therefore '''!CancelKey1''' is a value.
Line 31: Line 30:
On the right side you see a list. The entries in this list are called "value". '''!CancelKey1''' is there a value. The actual data saved under this value is called "data". Note that the ''names'' are called values! The actual data saved under a value is called "data".
Line 34: Line 34:
Line 36: Line 35:
Close
CopyTree
Line 37: Line 38:
DeleteSubKeyTree
Line 40: Line 42:
Close
CopyTree
Copyright
DeleteSubKey
DeleteSubKeyTree
DeleteValue
DoesKeyExist
DoesValueExist
GetAllSubKeyNames
GetAllValueNames
GetAllValues
GetDyalogRegPath
GetErrorAsStringFrom
Line 41: Line 56:
GetTree
GetTreeWithValues
GetTypeAsStringFrom
Line 42: Line 60:
History
KeyInfo
ListError
ListReg
OpenAndCreateKey
OpenKey
PutBinary
Line 44: Line 69:
Version ReadByte
Line 47: Line 72:
== History == == Restrictions ==
Line 49: Line 74:
For a full version history: [[WinReg/History| History]] Note the following restrictions:

 * `PutValue` supports DWORDs (REG_DWORD)
 * `PutBinary` supports REG_BINARY
 * `PutString` and `GetString` support strings (REG_SZ), nested strings (REG_MULTI_SZ) and expanded strings (REG_EXPAND_SZ)
 * `GetValue` supports all data types.

Other data types can be requested via `GetValue`; however, writing them is not supported.

== Project Page ==
For bug reports, future enhancements and a full version history see WinReg/ProjectPage
Line 52: Line 87:
||Original author: ||KaiJaeger ||
||Responsible: ||KaiJaeger ||
||Email: || kai@aplteam.com ||
Line 53: Line 91:
||Original author:||KaiJaeger||
||Responsible:||KaiJaeger||
||Email:||kai@aplteam.com||
||Current state:||1.0||

== Download ==

[[http://aplteam2.com/aplwiki/WinReg?action=AttachFile&do=get&target=WinReg.ZIP | Download right now]]

[[attachment:WinReg.ZIP | Manage the attachment]]
<<Include(APLTreeDownloads)>>
Line 65: Line 94:
CategoryOpenSourceApl CategoryAplApl CategoryAplTree

Dealing with the Windows Registry

WinReg is part of the CategoryAplTree project.

Overview

This class offers methods useful to deal with the Windows Registry without using .NET.

Terminology

To understand the names of the methods you need to understand the terminology. If you find the terminology strange: so do I, but it was invented by Microsoft and got widely accepted. That is the reason why I decided to go for it: it makes it easier to understand others while talking about the Windows Registry.

In this picture:

attachment:EditReg.jpg

you can see this string:

HKEY_CURRENT_USER\Software\Dyalog\Dyalog APL/W 12.0 Unicode\AutoComplete

at the top of the window.

HKEY_CURRENT_USER

This is called a "Main key". There are a number of pre-defined main keys available you can choose from. For the most important one from an application programmers view there is also a shortcut available: instead of HKEY_CURRENT_USER you can use HKCU.

SOFTWARE\Dyalog\Dyalog APL/W 12.0 Unicode

This is called a sub key.

On the right side you see a list. The entries in this list are called "values". Therefore CancelKey1 is a value.

Note that the names are called values! The actual data saved under a value is called "data".

Shared Methods

Close
CopyTree
DeleteSubKey
DeleteSubKeyTree
DeleteValue
DoesKeyExist
DoesValueExist
Close               
CopyTree            
Copyright           
DeleteSubKey        
DeleteSubKeyTree    
DeleteValue         
DoesKeyExist        
DoesValueExist      
GetAllSubKeyNames
GetAllValueNames
GetAllValues
GetDyalogRegPath
GetErrorAsStringFrom
GetString
GetTree
GetTreeWithValues
GetTypeAsStringFrom
GetValue
History
KeyInfo
ListError
ListReg
OpenAndCreateKey
OpenKey
PutBinary
PutString
PutValue
ReadByte

Restrictions

Note the following restrictions:

  • PutValue supports DWORDs (REG_DWORD)

  • PutBinary supports REG_BINARY

  • PutString and GetString support strings (REG_SZ), nested strings (REG_MULTI_SZ) and expanded strings (REG_EXPAND_SZ)

  • GetValue supports all data types.

Other data types can be requested via GetValue; however, writing them is not supported.

Project Page

For bug reports, future enhancements and a full version history see WinReg/ProjectPage

Version Information

Original author:

KaiJaeger

Responsible:

KaiJaeger

Email:

kai@aplteam.com


CategoryAplTree

WinRegSimple (last edited 2018-03-03 11:35:07 by KaiJaeger)