Why UrlDownloadToFile::OnProgress always return ulProgress and ulProgressMax with the same value
问题 This is my delphi code: TDownloadCallback = class(TInterfacedObject, IBindStatusCallback) private fOwner: TDownload; fUrl: string; public constructor Create(owner: TDownload; url: string); function OnStartBinding(dwReserved: DWORD; pib: IBinding): HResult; stdcall; function GetPriority(out nPriority): HResult; stdcall; function OnLowResource(reserved: DWORD): HResult; stdcall; function OnProgress(ulProgress, ulProgressMax, ulStatusCode: ULONG; szStatusText: LPCWSTR): HResult; stdcall;