home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / wpspi.idl < prev    next >
Text File  |  1998-04-25  |  3KB  |  118 lines

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