FORUMS
Remove All Ads from XDA

[SDK/DLL] «Registry Helper» Edit the Registry with a simple .Reg file

58 posts
Thanks Meter: 35
 
Post Reply Email Thread
DOWNLOAD: http://forum.xda-developers.com/atta...1&d=1350332484

Hello Guys

I'm here to bring you more comfort to your registry edit life,
No more thousands lines of code to edit the registry no,
Just 1 simple line of code and a '.reg' file,
What you want more? (if you want more reply on this thread )


ALERT: this SDK/DLL needs WP7 Root Tools SDK to work(I cant include it because its Heathcliff74 his work)

and now some code

Code:
RegistryHelper.RegFileHelper.RegisterFile("");
Look you did nothing now

but put the source of the .reg file in that empty string and it works

like

Code:
RegistryHelper.RegFileHelper.RegisterFile("[HKEY_CLASSES_ROOT\\MyOwnReg]\n@=\"Doggyyyyy\"\n\"nope\"=hex:ab,ab,ab,ab,ab");
thats it you now created a key in HKEY_CLASSES_ROOT with the name MyOwnReg and set the default value on Doggy and added an byte(/hex) value with the name nope

Big shoutout to:

Heathcliff74 for helping me and giving this neat SDK
my mum for screaming at me at 11 O'clock because I wasn't sleeping yet


Regards,

EaterOfCorpses

P.S. My site is down


UPDATE

Today I fixed the export of REG files and it does work (from my side) only there are some strange bugs with WP7 Root Tools, but I think it'll be fixed soon (I hope)

Code:

Code:
RegistryHelper.RegFileHelper.CreateFromRegistry("HKEY_CLASSES_ROOT\\test")
this will return the source of a REG file

Happy Coding, Guys

Regards EaterOfCorpses

UPDATE:

Tried to fix some bugs but it are bugs in SDK
Attached Files
File Type: rar RegistryHelper.rar - [Click for QR Code] (4.0 KB, 111 views)
File Type: rar RegistryHelper 1.1.rar - [Click for QR Code] (5.1 KB, 236 views)
File Type: rar RegistryHelper 1.2.rar - [Click for QR Code] (5.2 KB, 30 views)
File Type: rar RegistryHelper 1.3.rar - [Click for QR Code] (5.4 KB, 244 views)
The Following 6 Users Say Thank You to EaterOfCorpses For This Useful Post: [ View ] Gift EaterOfCorpses Ad-Free
 
 
13th October 2012, 10:08 AM |#2  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Reserved
14th October 2012, 02:57 AM |#3  
Recognized Developer
Flag Seattle
Thanks Meter: 2,918
 
More
Just to confirm, this is a library which parses a standard Windows .REG file and applies it to the WP7 registry, using Heathcliff74's Root Tools SDK?

Cool.
The Following 2 Users Say Thank You to GoodDayToDie For This Useful Post: [ View ]
14th October 2012, 07:38 AM |#4  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Yes, exactly!
14th October 2012, 06:56 PM |#5  
Heathcliff74's Avatar
Recognized Developer
Thanks Meter: 2,467
 
Donate to Me
More
NICE

edit: Added here.
The Following 2 Users Say Thank You to Heathcliff74 For This Useful Post: [ View ]
14th October 2012, 08:10 PM |#6  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Talking
Quote:
Originally Posted by Heathcliff74

NICE

edit: Added here.

yaaay

btw maybe Im gonna create an VS2010 add-in to make it complete

Edit:

Stupid me (facepalm)

Heathcliff, thanks
14th October 2012, 09:21 PM |#7  
Recognized Developer
Flag Seattle
Thanks Meter: 2,918
 
More
One other feature that would be really cool would be the ability to export .REG files from the registry. This could be used to take registry backups (similar to the way you can in regedit on the PC). Provide an API that specifies a registry path, and return a string containing the .REG data, or possibly one that takes a registry path and a file path, and automatically writes the reg data to that file path...?

Just a thought, but it would be tremendously helpful. One basic thing that is sorely missing from the current WP7 reg editors is a way to back up registry data easily, short of making a full phone image backup. For ome thing,s you need the full image backup anyhow because messing with them might make the phone unable to work normally, but for other things it would just be good to be able to tweak things while knowing they can be easily reverted (I'm thinking about stuff like the GPS settings, for example). I actually started work on a program that could export registry data to a file, but it got abandoned in the face of the many other things I found myself working on.
The Following 2 Users Say Thank You to GoodDayToDie For This Useful Post: [ View ]
14th October 2012, 09:41 PM |#8  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Thumbs up
Quote:
Originally Posted by GoodDayToDie

One other feature that would be really cool would be the ability to export .REG files from the registry. This could be used to take registry backups (similar to the way you can in regedit on the PC). Provide an API that specifies a registry path, and return a string containing the .REG data, or possibly one that takes a registry path and a file path, and automatically writes the reg data to that file path...?

Just a thought, but it would be tremendously helpful. One basic thing that is sorely missing from the current WP7 reg editors is a way to back up registry data easily, short of making a full phone image backup. For ome thing,s you need the full image backup anyhow because messing with them might make the phone unable to work normally, but for other things it would just be good to be able to tweak things while knowing they can be easily reverted (I'm thinking about stuff like the GPS settings, for example). I actually started work on a program that could export registry data to a file, but it got abandoned in the face of the many other things I found myself working on.

that's an excellent idea! Im gonna work on it tomorrow!
I took a week vacation from my work so I got all the time (if you forget the point that my mom limits me )
And with the experience I have I think this will take 2 hours to build, but It will take very long time to backup, so do you know something to block the phone so the user cant use it while it backups?
The Following 2 Users Say Thank You to EaterOfCorpses For This Useful Post: [ View ] Gift EaterOfCorpses Ad-Free
15th October 2012, 03:25 AM |#9  
Recognized Developer
Flag Seattle
Thanks Meter: 2,918
 
More
I figure people usually wont make the backup from super-low-level; they'll mostly want to create it near a "leaf" of the hierarchy, so neither creation nor restoration of an export should take very long. Doing a full backup would probably be a bit messy, because as far as I know there isn't any way to lock the entire registry at once, and parts of it are changing constantly. There are actually APIs for creating an entire duplicate of a registry hive (HKCR/HKCU/HKLM/etc.) but you'd have to write a bunch of native code to use them.

One other option would be to put a limit on the API, like an integer for how many levels deep to recurse, as that should reduce the size o the backup created. If you want to do it in a multi-threaded / abortable manner, you could also make the backup API offer a timeout, which if it expires before the backup is complete, would simply stop constructing the .REG file and return whatever it has so far. Also, of course, don't forget to use StringBuilder or some other class that allows quickly combining text.
15th October 2012, 09:25 AM |#10  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Wink
Quote:
Originally Posted by GoodDayToDie

I figure people usually wont make the backup from super-low-level; they'll mostly want to create it near a "leaf" of the hierarchy, so neither creation nor restoration of an export should take very long. Doing a full backup would probably be a bit messy, because as far as I know there isn't any way to lock the entire registry at once, and parts of it are changing constantly. There are actually APIs for creating an entire duplicate of a registry hive (HKCR/HKCU/HKLM/etc.) but you'd have to write a bunch of native code to use them.

One other option would be to put a limit on the API, like an integer for how many levels deep to recurse, as that should reduce the size o the backup created. If you want to do it in a multi-threaded / abortable manner, you could also make the backup API offer a timeout, which if it expires before the backup is complete, would simply stop constructing the .REG file and return whatever it has so far. Also, of course, don't forget to use StringBuilder or some other class that allows quickly combining text.

haha I can't write C++

So I will just start a new thread and make it event based and complicated
15th October 2012, 09:17 PM |#11  
EaterOfCorpses's Avatar
OP Member
Flag Alphen aan den Rijn
Thanks Meter: 35
 
Donate to Me
More
Quote:
Originally Posted by GoodDayToDie

I figure people usually wont make the backup from super-low-level; they'll mostly want to create it near a "leaf" of the hierarchy, so neither creation nor restoration of an export should take very long. Doing a full backup would probably be a bit messy, because as far as I know there isn't any way to lock the entire registry at once, and parts of it are changing constantly. There are actually APIs for creating an entire duplicate of a registry hive (HKCR/HKCU/HKLM/etc.) but you'd have to write a bunch of native code to use them.

One other option would be to put a limit on the API, like an integer for how many levels deep to recurse, as that should reduce the size o the backup created. If you want to do it in a multi-threaded / abortable manner, you could also make the backup API offer a timeout, which if it expires before the backup is complete, would simply stop constructing the .REG file and return whatever it has so far. Also, of course, don't forget to use StringBuilder or some other class that allows quickly combining text.

I just fixed it only there are some strange bugs in WP7 Root Tools and that takes a bit of the functionality

almost forgot to say:

http://forum.xda-developers.com/show...3#post32846003
Post Reply Subscribe to Thread

Tags
wp7roottools sdk registry eaterofcorpses

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes