c# - Cannot Write to the Registry under HKEY_LOCAL_MACHINE\Software -
i'm writing application needs create special user account hidden login screens , control panel users applet. writing dword
value of 0 user name registry key below, i'm able accomplish goal:
hkey_local_machine\software\microsoft\windows nt\currentversion\winlogon\specialaccounts\userlist
the problem under windows 7 uac on, no matter try, cannot programmatically write value key above.
it understanding writing keys not allowed on windows 7 uac on, unless running administrative privileges. i've added application manifest requestedexecutionlevel level="requireadministrator" uiaccess="false"
, accept uac prompt when program run, account member of administrators, yet still unable write above registry key.
what more need do? how possible, in application configuration, write keys , values under hkey_local_machine\software
?
further information ... when program runs, no errors thrown , seems write values. guess windows virtualizing location writing. need write actual location, not virtual one, if hide special user account.
probably program runs 32-bit program on 64-bit operation system? in case recommend search values created under wow6432node
subkey of hkey_local_machine\software
.
you can read more such kind of virtualization here. can use key_wow64_32key flag in api able work full registry without virtualization.
Comments
Post a Comment