Reading Registry Key on Win200

PascalALBERT

New Member
I work on Windows 2000 and Progress 8.1C
I want to read registry keys but I can't.

My code:

DEFINE VARIABLE cComDlg AS CHARACTER.
LOAD "Software" BASE-KEY "HKEY_CURRENT_USER".
USE "Software".
PUT-KEY-VALUE SECTION "SoftpakDevelopment" KEY "spCommonDialog" VALUE
cComDlg.
GET-KEY-VALUE SECTION "SoftpakDevelopment" KEY "spCommonDialog" VALUE
cComDlg.
UNLOAD "Software".

I have this message: "Le LOAD de Software a échoué (4450)".

What can I do ?
 

davebonas

New Member
Pascal,

Take a look at Progress knowledgebase #19606. It would indicate that you need admin rights to Load the registry, but the error you are getting is indicating that you don't have admin rights. Get you rights upgraded by your network administrator and give it another try.

One problem is that if this routine you are writing can be run by all users on your network then they will all need admin rights which most network managers will not want to give them.

Hope this Helps

Dave.
 
Top