WPSpi.Idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:3k
源码类别:

模拟服务器

开发平台:

C/C++

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