WPSpi.Idl 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*------------------------------------------------*\
  2. *
  3. * Copyright 1997 - 1999 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * wpspi.idl
  8. *
  9. * Abstract:
  10. *
  11. * Declaration of Microsoft Web Publishing
  12. * Service Provider Interface and type
  13. * library.
  14. *
  15. \*------------------------------------------------*/
  16. cpp_quote("#undef DeleteFile")
  17. cpp_quote("#undef FindFirstFile")
  18. cpp_quote("#undef FindNextFile")
  19. cpp_quote(" ")
  20. cpp_quote("typedef HRESULT (CALLBACK *PFNPROGRESSUPDATEPROC)(LPCWSTR, DWORD);")
  21. [
  22. object,
  23. local,
  24. uuid(5261F720-6C4C-11CF-86B1-00AA0060F86C),
  25. helpstring("IWPSiteW Interface"),
  26. pointer_default(unique)
  27. ]
  28. interface IWPSiteW : IUnknown
  29. {
  30. import "oaidl.idl";
  31. import "wptypes.h";
  32. cpp_quote("#ifndef _WINBASE_")
  33. typedef struct tagWIN32_FIND_DATAW {
  34. long dwFileAttributes;
  35. FILETIME ftCreationTime;
  36. FILETIME ftLastAccessTime;
  37. FILETIME ftLastWriteTime;
  38. long nFileSizeHigh;
  39. long nFileSizeLow;
  40. long dwReserved0;
  41. long dwReserved1;
  42. WCHAR cFileName[ 260 ];
  43. WCHAR cAlternateFileName[ 14 ];
  44. } WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
  45. cpp_quote("#endif")
  46. HRESULT GetSiteInfo( [out] LPWPSITEINFOW lpbSite,
  47. [in, out] LONG *lpcbSite);
  48. HRESULT NetworkConnect( [in, string] LPCWSTR lpszUserName,
  49. [in, string] LPCWSTR lpszPassword);
  50. HRESULT NetworkDisconnect();
  51. HRESULT ServerLogin( [in, string] LPCWSTR lpszUserName,
  52. [in, string] LPCWSTR lpszPassword);
  53. HRESULT ServerLogout();
  54. HRESULT PostFiles( [in] LONG cLocalPaths,
  55. [in, string] LPWSTR *lppszLocalPaths,
  56. [in, out] LONG *lpcbURL,
  57. [in, out, string] LPWSTR lpszURL,
  58. [in] LONG fdwFlags);
  59. HRESULT DeleteFile( [in, string] LPCWSTR lpszFile);
  60. HRESULT FindFirstFile( [in, string] LPCWSTR lpszSearchFile,
  61. [out] LPWIN32_FIND_DATAW lpFindFileData,
  62. [out] LONG *lpSearchHandle);
  63. HRESULT FindNextFile( [in] LONG hSearchHandle,
  64. [out] LPWIN32_FIND_DATAW lpFindFileData);
  65. HRESULT FindClose( [in] LONG hSearchHandle);
  66. HRESULT Commit();
  67. HRESULT GetParam( [in, string] LPCWSTR lpszParameter,
  68. [in, out] LONG *lpcbValue,
  69. [out, string] LPWSTR lpszValue);
  70. HRESULT SetParam( [in, string] LPCWSTR lpszParameter,
  71. [in, string] LPCWSTR lpszValue);
  72. HRESULT GetError( [out] LONG *lpdwErrorType,
  73. [out] LONG *lpdwErrorCode,
  74. [in, out] LONG *lpcbError,
  75. [out, string] LPWSTR lpszError);
  76. HRESULT AddWizardPages( [in] LONG *lpv,
  77. [in] LONG *lpfnAdd,
  78. [in, out] LONG *lParam);
  79. };
  80. [
  81. object,
  82. local,
  83. uuid(CB1D5316-30F6-11D0-AD03-00AA00A219AA),
  84. helpstring("IWPProvider Interface"),
  85. pointer_default(unique)
  86. ]
  87. interface IWPProvider : IWPSiteW
  88. {
  89. HRESULT SetProgressUpdateProc( [in] LONG *pfnProgressUpdateProc);
  90. };