{ "reference": "UserInterface/ProcessCRC.cpp", "reference_sha256": "5d7e9065b473da7dbf043c5251087114064d8f9a3b0d77108f5a4d71ca15e41c", "priority": "P4", "contracts": [], "functions": { "stristr": { "status": "PORTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:stristr" ], "test": [ "tests/port/port_process_crc_test.cpp" ] }, "GetProcessInformation": { "status": "ADAPTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:GetProcessInformation" ], "test": [ "tests/port/port_process_crc_test.cpp" ], "note": "40250: Toolhelp32 module snapshot, returns the path/base of the module whose path contains the exe name, false if none. Port: no module snapshot on the platform, always false. Invariant: __GetExeCRC then takes the not-found path (ProcCRC = 0)." }, "GetProcessMemoryCRC": { "status": "ADAPTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:GetProcessMemoryCRC" ], "test": [ "tests/port/port_process_crc_test.cpp" ], "note": "40250: CRC32 of the first 1 MB of the module image via ReadProcessMemory, 0 on failure. Port: returns 0 (no ReadProcessMemory); unreachable since GetProcessInformation is always false. Invariant: ProcCRC bytes of the magic cube are 0." }, "__GetExeCRC": { "status": "PORTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:__GetExeCRC" ], "test": [ "tests/port/port_process_crc_test.cpp" ], "note": "FileCRC = GetFileCRC32(GetExcutedFileName), whose PORT returns the working folder" }, "BuildProcessCRC": { "status": "PORTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:BuildProcessCRC" ], "test": [ "tests/port/port_process_crc_test.cpp" ] }, "GetProcessCRCMagicCubePiece": { "status": "PORTED", "impl": [ "src/platform/UserInterface/ProcessCRC.cpp:GetProcessCRCMagicCubePiece" ], "test": [ "tests/port/port_process_crc_test.cpp" ] } } }