Prev Previous Post   Next Post Next
Old 31st July 2005, 22:54   #1
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Registry API plugin/function help

This thread started as a result of http://forums.winamp.com/showthread....hreadid=218669

I have an idea that I wanted to try to implement in my own function using API calls to Advapi32.dll based on info from MSDN.

I'd like to use API calls instead of REGEDIT to import/export because of the fact that differnt versions REGEDIT export differently. If I could use API calls, I could keep the process consistant without having to use a lot of OS checks. (I'd also have more registry handling options available to me in case I needed to use them.) Plus since I'm not well-versed in C++, I thought this might offer a simple solution

However, this is where I'm having problems:
I'm trying to call RegOpenKeyEx, but am having some problems. Here's what I got so far. (I'm using Stardock an example just becuase it was something I had in my registry already):
code:
strcpy $3 "SOFTWARE\Stardock"
System::Call 'Advapi32::RegOpenKeyEx(i 0x80000002,t r3,i 0,i 0xF003F,i .r1)i .r2'
DetailPrint 'Result: $2'
DetailPrint 'Handle: $1'


I'm getting an error code 87 returned an no reg key handle.
(FYI: The main hive handle values I found at the bottom of this site.)

I'm hoping that someone will be able to point me in the right direction. (If I can figure out this function then I should be able to figure out the rest.

Thanks!
Comperio is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump