vc如何修改注册表

sunlit 2000-08-05 05:15:00
vc如何修改注册表
...全文
74 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2000-08-05
  • 打赏
  • 举报
回复
用RegOpenKey或RegCreateKey打开注册表,用RegQueryValue读取,RegSetValue写,RegCloseKey关闭;

LONG RegOpenKey(

HKEY hKey, // handle of open key
LPCTSTR lpSubKey, // address of name of subkey to open
PHKEY phkResult // address of handle of open key
);


LONG RegQueryValue(

HKEY hKey, // handle of key to query
LPCTSTR lpSubKey, // address of name of subkey to query
LPTSTR lpValue, // address of buffer for returned string
PLONG lpcbValue // address of buffer for size of returned string
);


LONG RegSetValue(

HKEY hKey, // handle of key to set value for
LPCTSTR lpSubKey, // address of subkey name
DWORD dwType, // type of value
LPCTSTR lpData, // address of value data
DWORD cbData // size of value data
);

LONG RegCreateKey(

HKEY hKey, // handle of an open key
LPCTSTR lpSubKey, // address of name of subkey to open
PHKEY phkResult // address of buffer for opened handle
);


LONG RegCloseKey(

HKEY hKey // handle of key to close
);

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧