CreateDeltaW (msdelta)
Last changed: -46.219.112.51

.

Creates a delta file that contains difference between Source and Target files.

C# Signature:

    [DllImport("msdelta.dll", SetLastError = true)]
    [return: MarshalAs(UnmanagedType.Bool)]
    private static extern bool CreateDeltaW(
                      DELTA_FILE_TYPE FileTypeSet,
                      DELTA_FLAG_TYPE SetFlags,
                      DELTA_FLAG_TYPE ResetFlags,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpSourceName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpTargetName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpSourceOptionsName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpTargetOptionsName,
                      DELTA_INPUT GlobalOptions,
                      ref System.Runtime.InteropServices.ComTypes.FILETIME lpTargetFileTime,
                      UInt32 HashAlgId,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpDeltaName)

      [DllImport("msdelta.dll", SetLastError = true)]
      [return: MarshalAs(UnmanagedType.Bool)]
       private static extern bool CreateDeltaW(
                      DELTA_FILE_TYPE FileTypeSet,
                      DELTA_FLAG_TYPE SetFlags,
                      DELTA_FLAG_TYPE ResetFlags,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpSourceName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpTargetName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpSourceOptionsName,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpTargetOptionsName,
                      DELTA_INPUT GlobalOptions,
                      IntPtr lpTargetFileTime,
                      UInt32 HashAlgId,
                      [MarshalAs(UnmanagedType.LPWStr)]string lpDeltaName);

VB Signature:

Declare Function CreateDeltaW Lib "msdelta.dll" (TODO) As TODO

User-Defined Types:

DELTA_FILE_TYPE

DELTA_FLAG_TYPE

DELTA_INPUT

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation