Home > OS >  Registry editor on the display of information and using WinApi read different is how to return a res
Registry editor on the display of information and using WinApi read different is how to return a res

Time:10-20

I want to change. The default HTML file open mode, but with all conventional methods are not change, so I looked at the HKEY_CLASSES_ROOT registry/. HTML, found the first button has a value of "QQBrowser. The file", (before loading QQ browser, and equipped with tencent computer butler) in the computer, and can't directly on the regedit change, change is directly pop-up "write error" dialog box,
Finally, I want to change, try WinAPI calls the first RegEnumValue () function shows the key value, the code is as follows (C)
CHAR childValueName [MAX_SIZE];//to accept key name
DWORD childValueNameSZ=MAX_SIZE;//the array size
DWORD childValueType;//key value type
BYTE childValueData [MAX_SIZE];//accept the key value content
DWORD childValueDataSZ=MAX_SIZE;//the array size

LONG ret=RegEnumValue (
Hkeys,//handle to the parent key to enumerate
0,//serial number
ChildValueName,//accept name
& ChildValueNameSZ,//the length of the incoming/outgoing
NULL,
& ChildValueType,//accept the key value type
ChildValueData,//accept the key value content
& ChildValueDataSZ);//the length of the incoming/outgoing

Puts (childValueName);//output key name
Puts (childValueData (char *));//output keys

Was amazed to see that as a result, the output of the keys and key values shown on the regedit, for "UCHTML" (UC browser) now, does that mean the value of content has been modified in the registry, but for some reason can not be read and normal use, I'm curious how did he do this, hope to tell everybody, thank you!
Posting so nervous ~ for the first time

CodePudding user response:

Regedit in the right mouse button on the registry entry point, permissions...

CodePudding user response:

reference 1st floor zhao4zhong1 response:
Regedit in the right mouse button on the registry entry point, permissions...

To fully control, or can't write

CodePudding user response:

refer to the second floor fourele response:
Quote: refer to 1st floor zhao4zhong1 response:

Regedit in the right mouse button on the registry entry point, permissions...

To fully control, or can't write

Reboot into safe mode to try again,
  • Related