wheb UAC is on change computer name access denied api failed

O

oz

I am using vista os , the flag UAC is on.
I am trying to change computer name by loading the dll Kernel32.dll
and call the function SetComputerNameEx.
under xp this works fine.
under vista I get ERROE_ACCESS_CONTROL
only if I disable the UAC i can change the computer name in vista.
Is there another way maybe to prompt the dialog box and change the UAC
for the computer?
thanks
oz
 
G

Guest

Does the manifest for your application include:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
 

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