晓
晓旭 秦
Hi, I'm trying write a program that is used to delete USB device's registry in 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\,but when I run RegOpenKeyEx function,it retun 5,access denied.And I found if I open regedit,and add access authority for all subitems manually,I can run RegOpenKeyEx and RegDeleteKey delete it.So my issue is that how can I solve the authority issue to delete USB device's registry by program but not manually? Any advice would be appreciated.Thanks.
Continue reading...
Continue reading...