O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Background transfers

It should be clear at this point that a suspended application can't do anything by itself, unless it has some background tasks working on its behalf. One of the operations that an app may need to perform is a lengthy download or upload of files. If the app becomes suspended, the download or upload operations cannot proceed. If the app is terminated, whatever was already downloaded goes away. Clearly, there must be a better way.

WinRT provides a way to do background transfers (downloads and uploads) even if the app is suspended, by using a separate process to do the actual transfers (BackgroundTransferHost.exe). This capability allows the app to make a lengthy transfer without requiring the user to stay with the app for the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required