Browse Source

notify user that a download is in progress

COM-121
Volker Birk 2 years ago
parent
commit
ce92a9e826
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      GateKeeper.cpp

+ 7
- 1
GateKeeper.cpp View File

@ -1,10 +1,13 @@
#include "stdafx.h"
#include "stdafx.h"
#include "GateKeeper.h"
#include "pEpCOMServerAdapter.h"
#include "CMainWindow.h"
using namespace std;
extern CMainWindow mainWindow;
// from https://msdn.microsoft.com/en-us/library/windows/desktop/dd388945(v=vs.85).aspx
struct PUBLIC_KEY_VALUES {
@ -519,6 +522,9 @@ namespace pEp {
DWORD reading;
InternetReadFile(hUrl, iv, sizeof(iv), &reading);
if (reading)
mainWindow.ShowNotificationInfo(_T("Downloading update"), _T("An update for p≡p arrived and is being downloaded."));
if (reading) do {
static char buffer[1024 * 1024];
BOOL bResult = InternetReadFile(hUrl, buffer, 1024 * 1024, &reading);


Loading…
Cancel
Save