Re: Read registry keys recursively

2016-05-29 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 29 May 2016 at 16:46:34 UTC, Era Scarecrow wrote: you should see the problem. Here's the correct line! writeRegistryKeys(k.getKey(key.name())); this just occurred to me i tried to keep to the example but i shouldn't have. Since you already have the inner key, just pass

Re: Read registry keys recursively

2016-05-29 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 29 May 2016 at 15:48:49 UTC, TheDGuy wrote: Hello, i am wondering what is wrong with my code: import std.windows.registry; import std.stdio; void main(){ Key lclM = Registry.localMachine(); Key hrdw = lclM.getKey("HARDWARE"); writeRegistryKeys(hrdw); } void writeRegistry

Read registry keys recursively

2016-05-29 Thread TheDGuy via Digitalmars-d-learn
Hello, i am wondering what is wrong with my code: import std.windows.registry; import std.stdio; void main(){ Key lclM = Registry.localMachine(); Key hrdw = lclM.getKey("HARDWARE"); writeRegistryKeys(hrdw); } void writeRegistryKeys(Key k){ foreach(Key key; k.keys){ write