| 280 | constexpr auto TWO_GB = 2LU * 1024 * 1024 * 1024; // 2GB |
| 281 | |
| 282 | HRESULT CDownloadNotifyInterface::QueryInterface(REFIID riid, LPVOID* ppvObj) |
| 283 | { |
| 284 | if (riid == __uuidof(IUnknown) || riid == __uuidof(IBackgroundCopyCallback) |
| 285 | || riid == __uuidof(IBackgroundCopyCallback2)) |
| 286 | { |
| 287 | *ppvObj = this; |
| 288 | } |
| 289 | else |
| 290 | { |
| 291 | *ppvObj = NULL; |
| 292 | return E_NOINTERFACE; |
| 293 | } |
| 294 | |
| 295 | AddRef(); |
| 296 | return NOERROR; |
| 297 | } |
| 298 | |
| 299 | ULONG CDownloadNotifyInterface::AddRef() |
| 300 | { |