📜  c#代码示例中的布尔值

📅  最后修改于: 2022-03-11 14:49:18.930000             🧑  作者: Mango

代码示例3
ReadProcessMemory(hProcess, (LPCVOID)(onlinePlayer + 0x14D0), &oClientSoldier, sizeof(DWORD_PTR), NULL);        if (!IsValid(oClientSoldier));        cout << "oClientSoldier = 0x" << hex << oClientSoldier << endl;        // I read shit        ReadProcessMemory(hProcess, (LPCVOID)(oClientSoldier + 0xBF0), &spottingTargetComponentData, sizeof(DWORD_PTR), NULL);        if (!IsValid(spottingTargetComponentData));        cout << "spottingTargetComponentData = 0x" << hex << spottingTargetComponentData << endl;        cout << "spottingTargetComponentData = " << dec << spottingTargetComponentData << endl;         ReadProcessMemory(hProcess, (LPCVOID)(spottingTargetComponentData + 0x50), &spotType, sizeof(int), NULL);        cout << "spotType = 0x" << hex << spotType << endl << endl;