can anyone advice me? My code causes blackshot to crash -> saying game hack detected.

please let me know which portion of my code need to be edited. thanks!

Code:
#define WIE1 0x0054B054
#define WIE2 0x0054AF6A
#define SSG 0x1AAD5908

void WeaponIndexError()
{
	*(PBYTE)WIE1 = 0;
	*(BYTE*)WIE2 = 0x74;
}


void Original()
{
	*(PBYTE)WIE1 = 0xFF;
	*(BYTE*)WIE2 = 0x75;
}


void Start()
{
	while (true)
	{
		*(BYTE*)SSG = 0x1301;

		if (GetAsyncKeyState(VK_HOME) < 0)
		{
			WeaponIndexError();
		}
		if (GetAsyncKeyState(VK_END) < 0)
		{
			Original();
		}
	}
}

BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
	if (dwReason == DLL_PROCESS_ATTACH){
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);

	}
	return 1;
}