c++ - how to delete local machine registry key? -


i need delete local machine registry keys, tried registry delete routines result through admin account cant it. how can set access rights of application system account using windows api routines??? used routine regdeletekey returned value 5 means access denied, run application under full admin rights

even manually open regedit admin rights, wont able delete local machine registry keys. purpose need system account rights.

i opened regedit system account rights , able delete local machine keys successfully. need programmatically

you either need run application administrator (run administrator in context menu of explorer), or need add manifest application, indicating application needs administrator rights. in latter case, uac dialog ask administrator credentials.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -