Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5 KiB

  1. // ############################################################################
  2. #ifndef _ICWDL_H
  3. #define _ICWDL_H
  4. // These are the types of info that are passed back through the callback
  5. #define CALLBACK_TYPE_URL 100
  6. #define CALLBACK_TYPE_PROGRESS 99
  7. // ############################################################################
  8. #define DOWNLOAD_LIBRARY TEXT("icwdl.dll")
  9. #define DOWNLOADINIT "DownLoadInit"
  10. #define DOWNLOADEXECUTE "DownLoadExecute"
  11. #define DOWNLOADCLOSE "DownLoadClose"
  12. #define DOWNLOADSETSTATUS "DownLoadSetStatusCallback"
  13. #define DOWNLOADPROCESS "DownLoadProcess"
  14. #define DOWNLOADCANCEL "DownLoadCancel"
  15. // ############################################################################
  16. typedef HRESULT (CALLBACK *PFNDOWNLOADINIT)(LPTSTR pszURL, DWORD_PTR FAR *lpCDialingDlg, DWORD_PTR FAR *pdwDownLoad, HWND hwndParent);
  17. typedef HRESULT (CALLBACK *PFNDOWNLOADCANCEL)(DWORD_PTR dwDownLoad);
  18. typedef HRESULT (CALLBACK *PFNDOWNLOADEXECUTE)(DWORD_PTR dwDownLoad);
  19. typedef HRESULT (CALLBACK *PFNDOWNLOADCLOSE)(DWORD_PTR dwDownLoad);
  20. // jmazner 10/2/96 Normandy #8493
  21. // WRONG PROTOTYPE!! This should match icwdl/download.cpp:DownLoadSetStatusCallBack!!
  22. //typedef HRESULT (CALLBACK *PFNDOWNLOADSETSTATUS)(DWORD dwDownLoad,INTERNET_STATUS_CALLBACK pfnCallback, DWORD dwContext);
  23. typedef HRESULT (CALLBACK *PFNDOWNLOADSETSTATUS)(DWORD_PTR dwDownLoad,INTERNET_STATUS_CALLBACK pfnCallback);
  24. typedef HRESULT (CALLBACK *PFNDOWNLOADPROCESS)(DWORD_PTR dwDownLoad);
  25. #endif // _ICWDL_H