vc60er/winsvc

Support RegQueryValueEx

Closed this issue · 4 comments

https://msdn.microsoft.com/en-us/library/ms724911(VS.85).aspx

There are existing various registry functions. Is it possible to support 
fetching registry keys via the above function? I think the difficulty may be in 
supporting the various types 
(https://msdn.microsoft.com/en-us/library/windows/desktop/ms724884%28v=vs.85%29.
aspx).

I'm not sure what a good solution for that would be. Perhaps start out with a 
RegistryGetString function so we have a nice template to work off, then folks 
can add other types as needed?

Original issue reported on code.google.com by matt.jib...@gmail.com on 5 Mar 2015 at 11:29

Let me think about that.

Alex

Original comment by alex.bra...@gmail.com on 6 Mar 2015 at 4:57

I was thinking about writing windows registry package for a while. Here 
github.com/alexbrainman/registry is something I use for my own projects. Feel 
free to use it as you like.

I will, probably, try to convince Rob and others to have this package in 
golang/org/x/sys/windows/registry. If I succeed, 
github.com/alexbrainman/registry will disappear.

Alex

Original comment by alex.bra...@gmail.com on 1 Apr 2015 at 6:22

  • Changed state: WontFix
matt.jibson,

I have got OK to move github.com/alexbrainman/registry package into 
golang/org/x/sys/windows/registry. Do you have any code / interface comments / 
suggestions before I move. Thank you.

Alex

Original comment by alex.bra...@gmail.com on 9 Apr 2015 at 5:40

I'll make a few comments on the github repo.

Original comment by matt.jib...@gmail.com on 9 Apr 2015 at 6:01