Windows SDK Registry: How can I read in data from the registry?
来源:互联网 发布:贵阳大数据案例 编辑:程序博客网 时间:2024/04/29 23:06
Q: How can I read data from the registry?
A:
Code:
Q: The RegQueryValueEx function returns an error code 234 (ERROR_MORE_DATA) that means "more data is available". How many bytes must be allocated for value buffer to assure this error does not appear anymore?
A: To find the necessary buffer size, call 'RegQueryValueEx()' with a 'NULL' value in 'lpData' parameter. After return, the variable pointed by 'lpcbData' will contain the size of the data. Allocate the buffer 'lpData' then call 'RegQueryValueEx()' again:
Code:
原文出处:http://www.codeguru.com/forum/showthread.php?s=&threadid=247020
- Windows SDK Registry: How can I read in data from the registry?
- Windows SDK Registry: How can I access the registry?
- Windows SDK Registry: How can I write data to the registry?
- How can I read single characters from the terminal?
- Read physical memory information from registry
- Read Registry Key in Script Task
- How do I read image data from a URL in Python ?
- the data that is in the table is from excel, so the data to be read can changed?
- How to configure default browser in registry
- How can I get the IPv4 address of an interface in linux from C code ?
- How can I recover a file that I deleted in my local repo from the remote repo in Git?
- no python installation found in the registry
- The Oracle Cluster Registry in RAC (OCR)
- Registry
- Registry
- Registry
- Registry
- How to read data from a file in reverse order?
- 人生中重要的经历5
- (gdb) ptype regex_ttype = struct re_pattern_buffer { unsigned char *buffer; long unsigned int allocated; long u
- Eclipse插件的安装(手动安装),以安装SVN插件和中文语言包为例
- 时间会很快过去
- [转]为什么数学难学?
- Windows SDK Registry: How can I read in data from the registry?
- 重装win7后修复grub2
- jdbc操作--Update
- Map5uPlanet系统介绍
- 我动心了
- 正则表达式结构type = struct re_pattern_buffer { unsigned char *buffer; long unsigned int allocated; long unsigned int
- GAE报错“NameError: global name 'execfile' is not defined”
- 远程DLL注入
- Windows SDK Registry: How can I write data to the registry?