VirtualAlloc returns fine and pAddr is correct as wellCode:
if (!WriteProccessMemory(hProc, pAddr, (LPVOID)GenerateLetters, dwProcSize, &dwWr)
cout << "WriteProcess Failed" << " " << GetLastError() << endl; //this says 87 which is invalid paramater , i dont know how to fix this after 10 hours
DWORD WINAPI GenerateLetters(LPVOID param)
thanks if you can help....