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.

101 lines
2.3 KiB

  1. /*******************************************************************
  2. *
  3. * DESCRIPTION:
  4. * Header for uploading file to server
  5. *
  6. * DATE:8/22/2002
  7. *
  8. *******************************************************************/
  9. #ifndef __INETUPLOAD_H_
  10. #define __INETUPLOAD_H_
  11. typedef enum _EnumUploadStatus {
  12. UploadNotStarted,
  13. UploadStarted,
  14. UploadCompressingFile,
  15. UploadCopyingFile,
  16. UploadConnecting,
  17. UploadTransferInProgress,
  18. UploadGettingResponse,
  19. UploadFailure,
  20. UploadSucceded
  21. } EnumUploadStatus;
  22. // {1131D95E-FFF0-4063-A744-00001555C706}
  23. DEFINE_GUID(IID_IOcaUploadFile, 0x1131D95E, 0xFFF0, 0x4063,
  24. 0xA7, 0x44, 0x00,0x00, 0x15, 0x55, 0xC7, 0x06);
  25. typedef interface DECLSPEC_UUID("1131D95E-FFF0-4063-A744-00001555C706")
  26. IOcaUploadFile* POCA_UPLOADFILE;
  27. #undef INTERFACE
  28. #define INTERFACE IOcaUploadFile
  29. DECLARE_INTERFACE_(IOcaUploadFile, IUnknown)
  30. {
  31. // IUnknown.
  32. STDMETHOD(QueryInterface)(
  33. THIS_
  34. IN REFIID InterfaceId,
  35. OUT PVOID* Interface
  36. ) PURE;
  37. STDMETHOD_(ULONG, AddRef)(
  38. THIS
  39. ) PURE;
  40. STDMETHOD_(ULONG, Release)(
  41. THIS
  42. ) PURE;
  43. // IOcaUploadFile.
  44. STDMETHOD(InitializeSession)(
  45. THIS_
  46. LPWSTR OptionCode,
  47. LPWSTR wszFileToSend
  48. ) PURE;
  49. STDMETHOD(SendFile)(
  50. THIS_
  51. LPWSTR wszRemoteFileName,
  52. BOOL bSecureMode
  53. ) PURE;
  54. STDMETHOD(UnInitialize)(
  55. THIS_
  56. ) PURE;
  57. STDMETHOD(Cancel)(
  58. THIS_
  59. ) PURE;
  60. STDMETHOD(GetUrlPageData)(
  61. THIS_
  62. LPWSTR wszUrl,
  63. LPWSTR wszUrlPage,
  64. ULONG cbUrlPage
  65. ) PURE;
  66. STDMETHOD_(ULONG, GetPercentComplete)(
  67. THIS_
  68. ) PURE;
  69. STDMETHOD_(LPWSTR, GetServerName)(
  70. THIS_
  71. ) PURE;
  72. STDMETHOD_(BOOL, IsUploadInProgress)(
  73. THIS_
  74. ) PURE;
  75. STDMETHOD_(BOOL, GetUploadResult)(
  76. THIS_
  77. LPTSTR Result,
  78. ULONG cbResult
  79. ) PURE;
  80. STDMETHOD(SetUploadResult)(
  81. THIS_
  82. EnumUploadStatus Success,
  83. LPCTSTR Text
  84. ) PURE;
  85. };
  86. BOOL
  87. OcaUpldCreate(POCA_UPLOADFILE* pUpload);
  88. #endif // __INETUPLOAD_H_