void LoadCodeCheck(){ int ImageBase = 0x400000; int textSectAddy = ImageBase + 0x00001000; int textSectSize = 0x00220000; unsigned char * textSect = new unsigned char[textSectSize]; unsigned long * byteRead = 0; if(ReadProcessMemory(GetCurrentProcess(), (unsigned long *)textSectAddy, textSect, textSectSize, byteRead)){ boost::crc_32_type crc32; crc32.process_bytes(textSect, textSectSize); long foundCRC32 = crc32.checksum(); FILE_LOG(logDEBUG) << "CRC of .text section is " << std::hex << foundCRC32; } }