几何尺寸与公差论坛

 找回密码
 注册
查看: 1812|回复: 0

在注册表里删除指定键值

[复制链接]
发表于 2007-4-4 21:34:24 | 显示全部楼层 |阅读模式
CString strSubKey = _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");

HKEY hKey = NULL;

RegOpenKeyEx(HKEY_LOCAL_MACHINE, strSubKey, 0, KEY_WRITE, &hKey);

CString strValue = _T("QQ.exe");

RegDeleteValue(hKey, strValue);

RegCloseKey(hKey);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:37 , Processed in 0.034356 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表