[RAPPS] snapshot url support (#2925)

* [RAPPS] add snapshot url support
* [RAPPS] fix snapshot prev window won't update if size not changed
* [RAPPS] fix crash after cancel download
* [RAPPS] show broken-img if failed to create file / make network request
* [RAPPS] create a snapshots folder if it does not exist
* [RAPPS] add a helper function to perform callback
* [RAPPS] check bIsCancelled when handling ERROR_INVALID_HANDLE
* [RAPPS] remove W suffix for AsyncInetDownload
* [RAPPS] add assert for unknown event
* [RAPPS] Improve AsyncInetDownload error handling
* [RAPPS] move DisplayFailed to private, fix crash when cancelling
* [RAPPS] check for ERROR_INTERNET_OPERATION_CANCELLED
* [RAPPS] improve error logging
* [RAPPS] remove \r in error logging
* [RAPPS] rewrite AsyncInet
This commit is contained in:
He Yang 2020-06-21 18:26:41 +08:00 committed by Mark Jansen
parent fbf119fde1
commit e506581454
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
6 changed files with 735 additions and 40 deletions

View file

@ -51,7 +51,7 @@ struct CAvailableApplicationInfo
ATL::CStringW m_szUrlSite;
ATL::CStringW m_szUrlDownload;
ATL::CSimpleArray<LCID> m_LanguageLCIDs;
ATL::CSimpleArray<ATL::CStringW> m_szSnapshotFilename;
ATL::CSimpleArray<ATL::CStringW> m_szSnapshotLocation;
ULONG m_SizeBytes;
@ -100,10 +100,11 @@ typedef BOOL(CALLBACK *AVAILENUMPROC)(CAvailableApplicationInfo *Info, LPCWSTR s
class CAvailableApps
{
static AvailableStrings m_Strings;
ATL::CAtlList<CAvailableApplicationInfo*> m_InfoList;
public:
static AvailableStrings m_Strings;
CAvailableApps();
static BOOL UpdateAppsDB();