private static extern bool CreateDeltaB( DeltaFileType fileTypeSet, // File type set. DeltaFlag setFlags, // Set these flags. DeltaFlag resetFlags, // Reset (suppress) these flags. DeltaInput source, // Source memory block. DeltaInput target, // Target memory block. DeltaInput sourceOptions, // Memory block with source-specific options. DeltaInput targetOptions, // Memory block with target-specific options. DeltaInput globalOptions, // Memory block with global options. IntPtr targetFileTime, // Target file time to use, null to use current time. (need this overload because the compiler can't convert from "null" to "ref FILETIME") AlgId hashAlgId, out DeltaOutput delta);
private static extern bool CreateDeltaB( DeltaFileType fileTypeSet, // File type set. DeltaFlag setFlags, // Set these flags. DeltaFlag resetFlags, // Reset (suppress) these flags. DeltaInput source, // Source memory block. DeltaInput target, // Target memory block. DeltaInput sourceOptions, // Memory block with source-specific options. DeltaInput targetOptions, // Memory block with target-specific options. DeltaInput globalOptions, // Memory block with global options. ref System.Runtime.InteropServices.ComTypes.FILETIME targetFileTime, // Target file time to use, null to use current time. AlgId hashAlgId, out DeltaOutput delta);