ReactOS  0.4.15-dev-5446-g3f3714b
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 439 of file appview.cpp.

446 {
448  switch (Event)
449  {
450  case ASYNCINET_DATA:
453  break;
454  case ASYNCINET_COMPLETE:
455  CloseHandle(DownloadParam->hFile);
457  break;
458  case ASYNCINET_CANCELLED:
459  CloseHandle(DownloadParam->hFile);
461  break;
462  case ASYNCINET_ERROR:
463  CloseHandle(DownloadParam->hFile);
465  break;
466  default:
467  ATLASSERT(FALSE);
468  break;
469  }
470  return 0;
471 }
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten
Definition: wdfiotarget.h:949
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
#define CloseHandle
Definition: compat.h:739
#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
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
#define NULL
Definition: types.h:112
CONST void * LPCVOID
Definition: windef.h:191
#define SendMessage
Definition: winuser.h:5833
LPARAM lParam
Definition: combotst.c:139
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092

Referenced by CAppScrnshotPreview::DisplayImage().