📄 subject_66682.htm
字号:
<p>
序号:66682 发表者:孙赟 发表日期:2003-12-25 20:29:46
<br>主题:怎么打不开注册表?
<br>内容:HKEY hkey;<BR>LPCTSTR data_Set="SOFTWARE\Microsoft\Windows\CurrentVersion";<BR>long ret0=(::RegOpenKeyEx(HKEY_LOCAL_MACHINE,data_Set,0,KEY_READ,&hkey));<BR> if(ret0!=ERROR_SUCCESS)<BR> {<BR> MessageBox("错误!");<BR> return;<BR> }<BR>有什么错吗?我是照书抄的
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:孙赟 回复日期:2003-12-25 20:41:33
<br>内容:可以了,要变成<BR>"SOFTWARE\\Microsoft\\Windows\\CurrentVersion"<BR>着书真烂!<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:夏雪宜 回复日期:2003-12-26 08:59:35
<br>内容:是啊,路径都要这样写的
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:林建华 回复日期:2003-12-26 09:59:41
<br>内容:呵呵:)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:爱夜公爵 回复日期:2003-12-26 10:01:26
<br>内容:RegOpenKeyEx 打开一个键<BR>RegQueryValueEx 读取子键<BR>RegSetValueEx 设置子键<BR>RegEnumKey 获得所有子键<BR>RegDeleteKey 删除一个子键<BR>RegDeleteValue 删除一个子键中的内容 <BR>RegCloseKey 关闭键<BR><BR> HKEY hkey; <BR> char sz[256]; <BR> DWORD dwtype, sl = 256; <BR> RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\ZealSoftStudio\\<BR> AskProFTP\\LastTime",NULL, KEY_ALL_ACCESS, &hkey); <BR> RegQueryValueEx(hkey, "WOL", NULL, &dwtype, (LPBYTE)sz, &sl); <BR> RegCloseKey(hkey); <BR><BR> HKEY hkey; <BR> BYTE lpData[]="Ymm's My Wife Ymm I Love You!!!";<BR> RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\Love",NULL, KEY_ALL_ACCESS, &hkey); <BR> RegSetValueEx(hkey,"Mylover",0,REG_SZ,lpData,16); <BR> RegCloseKey(hkey); <BR><BR> HKEY hkey; <BR> RegOpenKeyEx(HKEY_CURRENT_USER,"Software",NULL, KEY_ALL_ACCESS, &hkey); <BR> RegDeleteKey(hkey,"Net");<BR> RegCloseKey(hkey); <BR><BR><BR><BR>.键管理类<BR><BR> RegCloseKey() RegCreateKey() RegCreateKeyEx() RegDeleteKey() RegDeleteKeyEx() RegOpenKey() RegOpenKeyEx() <BR><BR> 2.值管理类<BR><BR> RegDeleteValue() RegQueryValue() RegQueryValueEx() RegSetValue() RegSetValueEx() <BR><BR> 3.查询计数类 <BR><BR> RegQueryInfoKey() RegEnumKey() RegEnumKeyEx() RegEnumValue() <BR><BR> 4.备份/恢复类 <BR><BR> RegLoadKey() RegReplaceKey() RegRestoreKey() RegSaveKey() <BR><BR> 5.实用类<BR><BR> RegConnectRegistry() RegNotifyChangeKeyValue() RegUnloadKey() <BR><BR> 6.安全类(仅适用于NT) <BR><BR> RegGetKeySecurity() RegSetKeySecurity()
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:孙赟 回复日期:2003-12-26 10:12:51
<br>内容:多谢!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -