Aggiungi la riga

fprintf(fp, "CreateThread %d\n", GetLastError());

dopo la

thread = CreateRemoteThread(proc, NULL, 0, (LPTHREAD_START_ROUTINE)GetProcAddress(LoadLibrary ("kernel32.dll"), "LoadLibraryA"), remoteBuff, 0, &threadId);

Ricompila, chiudi e riapri calc ed esegui. Leggi cosa c'e' nel log ...