RegQueryValueEx获取不到REG_DWORD的值

AccelFaiz 2014-01-25 05:43:46

LPCTSTR Regkey = "Software\\Microsoft\\Windows NT\\CurrentVersion";
DWORD dwInsTime = 0;
DWORD dwType = REG_DWORD;
DWORD cbData = sizeof(DWORD);

HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, Regkey, 0, KEY_ALL_ACCESS, &hKey);

RegQueryValueEx(hKey, "InstallDate", NULL, &dwType, (PBYTE)&dwInsTime, &cbData);

获取到的是0,不知为何
...全文
1283 29 打赏 收藏 转发到动态 举报
写回复
用AI写文章
29 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2014-01-27
  • 打赏
  • 举报
回复
查MSDN是Windows程序员必须掌握的技能之一。 RegOpenKeyEx Function Opens the specified registry key. Note that key names are not case sensitive. To perform transacted registry operations on a key, call the RegOpenKeyTransacted function. LONG WINAPI RegOpenKeyEx( __in HKEY hKey, __in LPCTSTR lpSubKey, DWORD ulOptions, __in REGSAM samDesired, __out PHKEY phkResult ); Parameters hKey A handle to an open registry key. This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function, or it can be one of the following predefined keys: HKEY_CLASSES_ROOT HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS Windows Me/98/95: This parameter can also be the following key: HKEY_DYN_DATA lpSubKey The name of the registry subkey to be opened. Key names are not case sensitive. If this parameter is NULL or a pointer to an empty string, the function will open a new handle to the key identified by the hKey parameter. For more information, see Registry Element Size Limits. ulOptions This parameter is reserved and must be zero. samDesired A mask that specifies the desired access rights to the key. The function fails if the security descriptor of the key does not permit the requested access for the calling process. For more information, see Registry Key Security and Access Rights. phkResult A pointer to a variable that receives a handle to the opened key. If the key is not one of the predefined registry keys, call the RegCloseKey function after you have finished using the handle. Return Value If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error. Remarks Unlike the RegCreateKeyEx function, the RegOpenKeyEx function does not create the specified key if the key does not exist in the registry. If your service or application impersonates different users, do not use this function with HKEY_CURRENT_USER. Instead, call the RegOpenCurrentUser function. A single registry key can be opened only 65534 times. When attempting the 65535th open operation, this function fails with ERROR_NO_SYSTEM_RESOURCES. Note that operations that access certain registry keys are redirected. For more information, see Registry Virtualization and 32-bit and 64-bit Application Data in the Registry. Example Code For an example, see Getting the System Version. Requirements Client Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95. Server Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server. Header Declared in Winreg.h; include Windows.h. Library Use Advapi32.lib. DLL Requires Advapi32.dll. Unicode Implemented as RegOpenKeyExW (Unicode) and RegOpenKeyExA (ANSI). See Also RegCloseKey RegCreateKeyEx RegDeleteKey Registry Functions Registry Overview RegOpenKeyTransacted Send comments about this topic to Microsoft Build date: 8/15/2007 32-bit and 64-bit Application Data in the Registry On 64-bit Windows, portions of the registry entries are stored separately for 32-bit application and 64-bit applications and mapped into separate logical registry views using the registry redirector and registry reflection, because the 64-bit version of an application may use different registry keys and values than the 32-bit version. There are also shared registry keys that are not redirected or reflected. The parent of each 64-bit registry node is the Image-Specific Node or ISN. The registry redirector transparently directs an application's registry access to the appropriate ISN subnode. Redirection subnodes in the registry tree are created automatically by the WOW64 component using the name Wow6432Node. As a result, it is essential not to name any registry key you create Wow6432Node. The KEY_WOW64_64KEY and KEY_WOW64_32KEY flags enable explicit access to the 64-bit registry view and the 32-bit view, respectively. For more information, see Accessing an Alternate Registry View. To disable and enable registry reflection for a particular key, use the RegDisableReflectionKey and RegEnableReflectionKey functions. Applications should disable reflection only for the registry keys that they create and not attempt to disable reflection for the predefined keys such as HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER. To determine which keys are on the reflection list, use the RegQueryReflectionKey function. See Also Registry Redirector Registry Reflection Send comments about this topic to Microsoft Build date: 8/15/2007 这个以前我也不知道。
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 5 楼 zhao4zhong1 的回复:
RegQueryValueEx The RegQueryValueEx function retrieves the type and data for a specified value name associated with an open registry key. LONG RegQueryValueEx( HKEY hKey, // handle to key to query LPTSTR lpValueName, // address of name of value to query LPDWORD lpReserved, // reserved LPDWORD lpType, // address of buffer for value type LPBYTE lpData, // address of data buffer LPDWORD lpcbData // address of data buffer size ); Parameters hKey Handle to a currently open key or any of the following predefined reserved handle values: HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS Windows NT: HKEY_PERFORMANCE_DATA Windows 95 and Windows 98: HKEY_DYN_DATA lpValueName Pointer to a null-terminated string containing the name of the value to query. If lpValueName is NULL or an empty string, "", the function retrieves the type and data for the key's unnamed or default value, if any. Windows 95 and Windows 98: Every key has a default value that initially does not contain data. On Windows 95, the default value type is always REG_SZ. On Windows 98, the type of a key's default value is initially REG_SZ, but RegSetValueEx can specify a default value with a different type. Windows NT: Keys do not automatically have an unnamed or default value. Unnamed values can be of any type. lpReserved Reserved; must be NULL. lpType Pointer to a variable that receives the type of data associated with the specified value. The value returned through this parameter will be one of the following: Value Meaning REG_BINARY Binary data in any form. REG_DWORD A 32-bit number. REG_DWORD_LITTLE_ENDIAN A 32-bit number in little-endian format. This is equivalent to REG_DWORD. In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format. Windows NT, Windows 95, and Windows 98 are designed to run on little-endian computer architectures. A user may connect to computers that have big-endian architectures, such as some UNIX systems. REG_DWORD_BIG_ENDIAN A 32-bit number in big-endian format. In big-endian format, a multi-byte value is stored in memory from the highest byte (the "big end") to the lowest byte. For example, the value 0x12345678 is stored as (0x12 0x34 0x56 0x78) in big-endian format. REG_EXPAND_SZ A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use theExpandEnvironmentStrings function. REG_LINK A Unicode symbolic link. REG_MULTI_SZ An array of null-terminated strings, terminated by two null characters. REG_NONE No defined value type. REG_RESOURCE_LIST A device-driver resource list. REG_SZ A null-terminated string. It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. The lpType parameter can be NULL if the type is not required. lpData Pointer to a buffer that receives the value's data. This parameter can be NULL if the data is not required. lpcbData Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpData parameter. When the function returns, this variable contains the size of the data copied to lpData. If the data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, then lpcbData will also include the size of the terminating null character. The lpcbData parameter can be NULL only if lpData is NULL. If the buffer specified by lpData parameter is not large enough to hold the data, the function returns the value ERROR_MORE_DATA, and stores the required buffer size, in bytes, into the variable pointed to by lpcbData. If lpData is NULL, and lpcbData is non-NULL, the function returns ERROR_SUCCESS, and stores the size of the data, in bytes, in the variable pointed to by lpcbData. This lets an application determine the best way to allocate a buffer for the value's data. Window NT: If hKey specifies HKEY_PERFORMANCE_DATA and the lpData buffer is too small, RegQueryValueEx returns ERROR_MORE_DATA but lpcbData does not return the required buffer size. This is because the size of the performance data can change from one call to the next. In this case, you must increase the buffer size and call RegQueryValueEx again passing the updated buffer size in the lpcbData parameter. Repeat this until the function succeeds. You need to maintain a separate variable to keep track of the buffer size, because the value returned by lpcbData is unpredictable. Return Values If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in WINERROR.H. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error. Remarks The key identified by hKey must have been opened with KEY_QUERY_VALUE access. To open the key, use the RegCreateKeyEx or RegOpenKeyEx function. If the value data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, and the ANSI version of this function is used (either by explicitly calling RegQueryValueExA or by not defining UNICODE before including the WINDOWS.H file), this function converts the stored Unicode string to an ANSI string before copying it to the buffer pointed to by lpData. Window NT: When calling the RegQueryValueEx function with hKey set to the HKEY_PERFORMANCE_DATA handle and a value string of a specified object, the returned data structure sometimes has unrequested objects. Don't be surprised; this is normal behavior. When calling the RegQueryValueEx function, you should always expect to walk the returned data structure to look for the requested object. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in winreg.h. Import Library: Use advapi32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows NT. See Also Registry Overview, Registry Functions,ExpandEnvironmentStrings, RegCreateKeyEx, RegEnumKey, RegEnumKeyEx, RegEnumValue, RegOpenKeyEx, RegQueryInfoKey, RegQueryValue
求明说。。就感觉
引用
REG_DWORD_LITTLE_ENDIAN A 32-bit number in little-endian format. This is equivalent to REG_DWORD. In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format.
有点关联,但感觉不至于是0额
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
RegQueryValueEx The RegQueryValueEx function retrieves the type and data for a specified value name associated with an open registry key. LONG RegQueryValueEx( HKEY hKey, // handle to key to query LPTSTR lpValueName, // address of name of value to query LPDWORD lpReserved, // reserved LPDWORD lpType, // address of buffer for value type LPBYTE lpData, // address of data buffer LPDWORD lpcbData // address of data buffer size ); Parameters hKey Handle to a currently open key or any of the following predefined reserved handle values: HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS Windows NT: HKEY_PERFORMANCE_DATA Windows 95 and Windows 98: HKEY_DYN_DATA lpValueName Pointer to a null-terminated string containing the name of the value to query. If lpValueName is NULL or an empty string, "", the function retrieves the type and data for the key's unnamed or default value, if any. Windows 95 and Windows 98: Every key has a default value that initially does not contain data. On Windows 95, the default value type is always REG_SZ. On Windows 98, the type of a key's default value is initially REG_SZ, but RegSetValueEx can specify a default value with a different type. Windows NT: Keys do not automatically have an unnamed or default value. Unnamed values can be of any type. lpReserved Reserved; must be NULL. lpType Pointer to a variable that receives the type of data associated with the specified value. The value returned through this parameter will be one of the following: Value Meaning REG_BINARY Binary data in any form. REG_DWORD A 32-bit number. REG_DWORD_LITTLE_ENDIAN A 32-bit number in little-endian format. This is equivalent to REG_DWORD. In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format. Windows NT, Windows 95, and Windows 98 are designed to run on little-endian computer architectures. A user may connect to computers that have big-endian architectures, such as some UNIX systems. REG_DWORD_BIG_ENDIAN A 32-bit number in big-endian format. In big-endian format, a multi-byte value is stored in memory from the highest byte (the "big end") to the lowest byte. For example, the value 0x12345678 is stored as (0x12 0x34 0x56 0x78) in big-endian format. REG_EXPAND_SZ A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use theExpandEnvironmentStrings function. REG_LINK A Unicode symbolic link. REG_MULTI_SZ An array of null-terminated strings, terminated by two null characters. REG_NONE No defined value type. REG_RESOURCE_LIST A device-driver resource list. REG_SZ A null-terminated string. It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. The lpType parameter can be NULL if the type is not required. lpData Pointer to a buffer that receives the value's data. This parameter can be NULL if the data is not required. lpcbData Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpData parameter. When the function returns, this variable contains the size of the data copied to lpData. If the data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, then lpcbData will also include the size of the terminating null character. The lpcbData parameter can be NULL only if lpData is NULL. If the buffer specified by lpData parameter is not large enough to hold the data, the function returns the value ERROR_MORE_DATA, and stores the required buffer size, in bytes, into the variable pointed to by lpcbData. If lpData is NULL, and lpcbData is non-NULL, the function returns ERROR_SUCCESS, and stores the size of the data, in bytes, in the variable pointed to by lpcbData. This lets an application determine the best way to allocate a buffer for the value's data. Window NT: If hKey specifies HKEY_PERFORMANCE_DATA and the lpData buffer is too small, RegQueryValueEx returns ERROR_MORE_DATA but lpcbData does not return the required buffer size. This is because the size of the performance data can change from one call to the next. In this case, you must increase the buffer size and call RegQueryValueEx again passing the updated buffer size in the lpcbData parameter. Repeat this until the function succeeds. You need to maintain a separate variable to keep track of the buffer size, because the value returned by lpcbData is unpredictable. Return Values If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in WINERROR.H. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error. Remarks The key identified by hKey must have been opened with KEY_QUERY_VALUE access. To open the key, use the RegCreateKeyEx or RegOpenKeyEx function. If the value data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, and the ANSI version of this function is used (either by explicitly calling RegQueryValueExA or by not defining UNICODE before including the WINDOWS.H file), this function converts the stored Unicode string to an ANSI string before copying it to the buffer pointed to by lpData. Window NT: When calling the RegQueryValueEx function with hKey set to the HKEY_PERFORMANCE_DATA handle and a value string of a specified object, the returned data structure sometimes has unrequested objects. Don't be surprised; this is normal behavior. When calling the RegQueryValueEx function, you should always expect to walk the returned data structure to look for the requested object. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in winreg.h. Import Library: Use advapi32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows NT. See Also Registry Overview, Registry Functions,ExpandEnvironmentStrings, RegCreateKeyEx, RegEnumKey, RegEnumKeyEx, RegEnumValue, RegOpenKeyEx, RegQueryInfoKey, RegQueryValue
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
RegOpenKeyEx The RegOpenKeyEx function opens the specified key. LONG RegOpenKeyEx( HKEY hKey, // handle to open key LPCTSTR lpSubKey, // address of name of subkey to open DWORD ulOptions, // reserved REGSAM samDesired, // security access mask PHKEY phkResult // address of handle to open key ); Parameters hKey Handle to a currently open key or any of the following predefined reserved handle values: HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS Windows NT: HKEY_PERFORMANCE_DATA Windows 95 and Windows 98: HKEY_DYN_DATA lpSubKey Pointer to a null-terminated string containing the name of the subkey to open. If this parameter is NULL or a pointer to an empty string, the function will open a new handle to the key identified by the hKey parameter. In this case, the function will not close the handles previously opened. ulOptions Reserved; must be zero. samDesired Specifies an access mask that describes the desired security access for the new key. This parameter can be a combination of the following values: Value Meaning KEY_ALL_ACCESS Combination of KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, KEY_NOTIFY, KEY_CREATE_SUB_KEY, KEY_CREATE_LINK, and KEY_SET_VALUE access. KEY_CREATE_LINK Permission to create a symbolic link. KEY_CREATE_SUB_KEY Permission to create subkeys. KEY_ENUMERATE_SUB_KEYS Permission to enumerate subkeys. KEY_EXECUTE Permission for read access. KEY_NOTIFY Permission for change notification. KEY_QUERY_VALUE Permission to query subkey data. KEY_READ Combination of KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, and KEY_NOTIFY access. KEY_SET_VALUE Permission to set subkey data. KEY_WRITE Combination of KEY_SET_VALUE and KEY_CREATE_SUB_KEY access. phkResult Pointer to a variable that receives a handle to the opened key. When you no longer need the returned handle, call the RegCloseKey function to close it. Return Values If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in WINERROR.H. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error. Remarks Unlike the RegCreateKeyEx function, the RegOpenKeyEx function does not create the specified key if the key does not exist in the registry. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in winreg.h. Import Library: Use advapi32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows NT. See Also Registry Overview, Registry Functions, RegCloseKey, RegCreateKeyEx, RegDeleteKey, RegOpenKey
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 28 楼 zhao4zhong1 的回复:
[quote=引用 27 楼 u010996866 的回复:] [quote=引用 26 楼 zhao4zhong1 的回复:] [quote=引用 24 楼 u010996866 的回复:] [quote=引用 23 楼 zhao4zhong1 的回复:] 设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
32位读取不了。。又要32位又要能读取到值[/quote]
WinExec("cmd /c c:\\windows\\system32\\regedit.exe /e temp1.reg HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion",SW_HIDE);
//然后读文件temp1.reg的内容
试试看。[/quote] 多谢,是一种思路![/quote] 解决很多问题,往往一种思路就足够了;想多了反而会自讨苦吃。[/quote] 更简单的来了: RegOpenKeyEx(HKEY_LOCAL_MACHINE, Regkey, 0, KEY_ALL_ACCESS|KEY_WOW64_64KEY, &hKey); 搞定了!
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
引用 27 楼 u010996866 的回复:
[quote=引用 26 楼 zhao4zhong1 的回复:] [quote=引用 24 楼 u010996866 的回复:] [quote=引用 23 楼 zhao4zhong1 的回复:] 设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
32位读取不了。。又要32位又要能读取到值[/quote]
WinExec("cmd /c c:\\windows\\system32\\regedit.exe /e temp1.reg HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion",SW_HIDE);
//然后读文件temp1.reg的内容
试试看。[/quote] 多谢,是一种思路![/quote] 解决很多问题,往往一种思路就足够了;想多了反而会自讨苦吃。
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 26 楼 zhao4zhong1 的回复:
[quote=引用 24 楼 u010996866 的回复:] [quote=引用 23 楼 zhao4zhong1 的回复:] 设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
32位读取不了。。又要32位又要能读取到值[/quote]
WinExec("cmd /c c:\\windows\\system32\\regedit.exe /e temp1.reg HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion",SW_HIDE);
//然后读文件temp1.reg的内容
试试看。[/quote] 多谢,是一种思路!
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
引用 24 楼 u010996866 的回复:
[quote=引用 23 楼 zhao4zhong1 的回复:] 设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
32位读取不了。。又要32位又要能读取到值[/quote]
WinExec("cmd /c c:\\windows\\system32\\regedit.exe /e temp1.reg HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion",SW_HIDE);
//然后读文件temp1.reg的内容
试试看。
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
请注意: c:\windows\system32\regedit.exe看的是64位注册表 和 c:\windows\syswow64\regedit.exe看的是32位注册表 别了!
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 23 楼 zhao4zhong1 的回复:
设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
32位读取不了。。又要32位又要能读取到值
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
设定32位:项目、属性、配置属性、链接器、高级、目标计算机:MachineX86(/MACHINE:X86)
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
引用 19 楼 zhao4zhong1 的回复:
试试修改项目属性,指定输出X64版。
项目、属性、配置属性、链接器、高级、目标计算机:MachineX64(/MACHINE:X64)
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 19 楼 zhao4zhong1 的回复:
试试修改项目属性,指定输出X64版。
需要32的怎么办
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
引用 13 楼 zhao4zhong1 的回复:
我猜: 运行 c:\windows\system32\regedit.exe 和 c:\windows\syswow64\regedit.exe 看到的注册表不是同一个。
猜中了吧!
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
试试修改项目属性,指定输出X64版。
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 17 楼 zhao4zhong1 的回复:
关闭所有杀软! 重建所有! 确定你执行的exe是最后编译生成的那个exe。
虚拟机读取正常!运行regedit跳出的编辑器是c:\windows\目录下的 打开syswow64下的编辑器果然数值为0! 这样怎么处理?
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
关闭所有杀软! 重建所有! 确定你执行的exe是最后编译生成的那个exe。
AccelFaiz 2014-01-26
  • 打赏
  • 举报
回复
引用 15 楼 zhao4zhong1 的回复:
注意仔细检查如下图黄色部分别看走眼了。
绝对没问题,我实机的,,去试试XP虚拟机……
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
注意仔细检查如下图黄色部分别看走眼了。
赵4老师 2014-01-26
  • 打赏
  • 举报
回复
还有,会不会是防火墙或杀毒软件捣的鬼? 总不至于你是在虚拟机环境下或远程打开别的电脑的注册表吧。
加载更多回复(10)

3,882

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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