I use the Version 2006.10.04 (with Delphi). There are now callback numbers dealing with padding. But I don't find any examples for CN_DVD_MEDIA_PADDING_WRITE_PROGRESS
I tried to use the same code as used for CN_CDVD_WRITE_PROGRESS, but the returned percent value is not correct:
Code:
case ACALLBACK_NUMBER of
[...]
CN_DVD_MEDIA_PADDING_WRITE_PROGRESS: begin
// Get parameters passed with callback
FFileSizeInLBs := PInt64(ACallbackSpecial1)^;
FLBsWritten.QuadPart := PInt64(ACallbackSpecial2)^;
// Calculate number of percent written
FCurrentPercent.QuadPart :=
((FLBsWritten.QuadPart * 100) Div FFileSizeInLBs);
// Check if current calculated was already written
if FCurrentPercent.QuadPart <> g__LARGE_INTEGER__LastWrittenPercent.QuadPart then
begin
// Update last written percent with current value
g__LARGE_INTEGER__LastWrittenPercent.QuadPart := FCurrentPercent.QuadPart;
// This percent to event
CallBackEventer.DoWriteProgress(g__LARGE_INTEGER__LastWrittenPercent.QuadPart);
end;
end;
[...]
end; // case
What format do the parameters for that callback have?
Thanks in advance