65,187
社区成员




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);
}