wheb UAC is on change computer name access denied api failed

  • Thread starter Thread starter oz
  • Start date Start date
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
 
Does the manifest for your application include:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
 
Back
Top