Compares the binary content of two files to determine if they are identical, excluding any differences in padding (trailing zeros).
Parameters
- source
- The source file to compare.
- compareTo
- The file to compare against the source file.
Return Value
true
if the binary content of both files is identical when ignoring padding; otherwise, false
. This method is particularly useful for detecting if a file has been altered in a manner that might not affect its operational integrity but could be indicative of tampering or an attempt to evade detection by changing its size.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2