ReactOS  0.4.15-dev-1206-g731eddf
appview.cpp File Reference
#include "rapps.h"
#include "appview.h"
#include "gui.h"
#include <windowsx.h>
Include dependency graph for appview.cpp:

Go to the source code of this file.

Functions

int ScrnshotDownloadCallback (pASYNCINET AsyncInet, ASYNC_EVENT Event, WPARAM wParam, LPARAM lParam, VOID *Extension)
 

Function Documentation

◆ ScrnshotDownloadCallback()

int ScrnshotDownloadCallback ( pASYNCINET  AsyncInet,
ASYNC_EVENT  Event,
WPARAM  wParam,
LPARAM  lParam,
VOID Extension 
)

Definition at line 437 of file appview.cpp.

444 {
446  switch (Event)
447  {
448  case ASYNCINET_DATA:
451  break;
452  case ASYNCINET_COMPLETE:
453  CloseHandle(DownloadParam->hFile);
455  break;
456  case ASYNCINET_CANCELLED:
457  CloseHandle(DownloadParam->hFile);
459  break;
460  case ASYNCINET_ERROR:
461  CloseHandle(DownloadParam->hFile);
463  break;
464  default:
465  ATLASSERT(FALSE);
466  break;
467  }
468  return 0;
469 }
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
_Must_inspect_result_ _In_ PFILE_OBJECT _In_opt_ PLARGE_INTEGER _In_ ULONG _In_ FLT_IO_OPERATION_FLAGS _Out_opt_ PULONG BytesWritten
Definition: fltkernel.h:1293
#define CloseHandle
Definition: compat.h:598
#define ERROR_SUCCESS
Definition: deptool.c:10
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
UINT_PTR WPARAM
Definition: windef.h:207
WPARAM wParam
Definition: combotst.c:138
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_RAPPS_DOWNLOAD_COMPLETE
Definition: appview.h:41
unsigned long DWORD
Definition: ntddk_ex.h:95
#define ERROR_CANCELLED
Definition: winerror.h:726
CONST void * LPCVOID
Definition: windef.h:191
#define SendMessage
Definition: winuser.h:5818
LPARAM lParam
Definition: combotst.c:139
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092

Referenced by CAppScrnshotPreview::DisplayImage().