草庐IT

registryTester

全部标签

C++ 无法在注册表中创建新键

我真的需要你的帮助。我什么都试过了,但结果总是一样的,什么都没有。请指教。这是我的代码#include#include#includeusingnamespacestd;intmain(void){HKEYhKey;LONGregOpenResult;constcharPATH[]="C:\\Users\\les\\Documents\\visualstudio2010\\Projects\\registryTester\\Debug\\registryTester.exe";RegCreateKeyExW(HKEY_LOCAL_MACHINE,L"SOFTWARE\\Microsof