ReactOS 0.4.15-dev-8096-ga0eec98
asyncinet.h
Go to the documentation of this file.
1#ifndef ASYNC_INET
2#define ASYNC_INET
3
4
6{
7 ASYNCINET_DATA, // wParam is the Data retrieved from the internet, lParam is the length of Data
8
9 ASYNCINET_COMPLETE, // wParam and lParam are not used.
10 // when receiving this, AsyncInet will be free soon and should not used anymore
11
12 ASYNCINET_CANCELLED, // wParam and lParam are not used.
13 // when receiving this, AsyncInet will be free soon and should not used anymore
14
15 ASYNCINET_ERROR // wParam is not used. lParam specify the error code (if there is one).
16 // when receiving this, AsyncInet will be free soon and should not used anymore
17};
18
20
21typedef int
23 pASYNCINET AsyncInet,
28 );
29
30typedef struct __AsyncInet
31{
34
36
40
42
44
47
51
53 DWORD dwAccessType,
54 LPCWSTR lpszProxy,
55 LPCWSTR lpszProxyBypass,
56 LPCWSTR lpszUrl,
57 BOOL bAllowCache,
60 );
61
63
65
66#endif
pASYNCINET AsyncInetDownload(LPCWSTR lpszAgent, DWORD dwAccessType, LPCWSTR lpszProxy, LPCWSTR lpszProxyBypass, LPCWSTR lpszUrl, BOOL bAllowCache, ASYNCINET_CALLBACK Callback, VOID *Extension)
Definition: asyncinet.cpp:33
ASYNC_EVENT
Definition: asyncinet.h:6
@ ASYNCINET_ERROR
Definition: asyncinet.h:15
@ ASYNCINET_COMPLETE
Definition: asyncinet.h:9
@ ASYNCINET_CANCELLED
Definition: asyncinet.h:12
@ ASYNCINET_DATA
Definition: asyncinet.h:7
BOOL AsyncInetCancel(pASYNCINET AsyncInet)
Definition: asyncinet.cpp:126
struct __AsyncInet * pASYNCINET
Definition: asyncinet.h:19
VOID AsyncInetRelease(pASYNCINET AsyncInet)
Definition: asyncinet.cpp:184
int(* ASYNCINET_CALLBACK)(pASYNCINET AsyncInet, ASYNC_EVENT Event, WPARAM wParam, LPARAM lParam, VOID *Extension)
Definition: asyncinet.h:22
struct __AsyncInet ASYNCINET
Definition: asyncinet.h:19
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092
unsigned int UINT
Definition: ndis.h:50
UINT ReferenceCnt
Definition: asyncinet.h:37
BOOL bIsOpenUrlComplete
Definition: asyncinet.h:41
DWORD BytesRead
Definition: asyncinet.h:46
CRITICAL_SECTION CriticalSection
Definition: asyncinet.h:38
ASYNCINET_CALLBACK Callback
Definition: asyncinet.h:48
VOID * Extension
Definition: asyncinet.h:49
HANDLE hEventHandleCreated
Definition: asyncinet.h:35
BOOL bCancelled
Definition: asyncinet.h:43
HINTERNET hInetFile
Definition: asyncinet.h:33
BYTE ReadBuffer[4096]
Definition: asyncinet.h:45
HANDLE hEventHandleClose
Definition: asyncinet.h:39
HINTERNET hInternet
Definition: asyncinet.h:32
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:458
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193