Vista admin priviledges question

K

Kid

Hi

I found that RegOpenKeyEx will fail on Vista when the base path is
HKEY_LOCAL_MACHINE but my app need to read some key there.

Is there any api can ask admin priviledges when launching then I do
not need to click mouse right key and choose admin priviledges from
Vista pop-up menu ?

Thank you .
 
D

David Lowndes

I found that RegOpenKeyEx will fail on Vista when the base path is
HKEY_LOCAL_MACHINE but my app need to read some key there.

What access are you asking for when you try to open the key?

If you're inadvertently asking for write permission rather than just
read, change it!

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top