64,642
社区成员
发帖
与我相关
我的任务
分享
HKEY hKey;
RegCreateKey(HKEY_LOCAL_MACHINE,_T("Software\\snail\\admin"),&hKey);
RegSetValue(hKey,NULL,REG_SZ,_T("snail"),strlen("snail"));
RegCloseKey(hKey);
#include <windows.h>
#pragma comment(lib,"Advapi32")
int main (void)
{
HKEY hKey;
RegCreateKey(HKEY_LOCAL_MACHINE,TEXT("Software\\snail\\admin"),&hKey);
RegSetValue(hKey,NULL,REG_SZ,TEXT("snail"),strlen("snail"));
RegCloseKey(hKey);
}