home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / wpapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  4.6 KB  |  192 lines

  1. /*-------------------------------------------------------*\
  2.  *
  3.  *    Copyright 1997 - 1998 Microsoft Corporation
  4.  *
  5.  *    Module Name:
  6.  *
  7.  *        wp15api.h
  8.  *
  9.  *    Abstract:
  10.  *
  11.  *        Declaration of the Microsoft Web Publishing API
  12.  *
  13. \*-------------------------------------------------------*/
  14.  
  15.  
  16. #ifndef __WP15API_H__
  17. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  18. #define __WP15API_H__
  19.  
  20.  
  21. #include <windows.h>
  22. #include "wptypes.h"
  23.  
  24. //
  25. // Assume packing on DWORD boundary
  26. //
  27.  
  28. #include <pshpack4.h>
  29.  
  30.  
  31. //
  32. //    Flags
  33. //
  34.  
  35. #define WPF_NO_RECURSIVE_POST            0x00000001        //    WpPost
  36. #define WPF_NO_WIZARD                    0x00000002        //    WpPost
  37. #define WPF_MINIMAL_UI                    0x00000004        //    WpPost - OBSOLETE
  38. #define WPF_FIRST_FILE_AS_DEFAULT        0x00000008        //    WpPost/PostFiles
  39. #define WPF_NO_DIRECT_LOOKUP            0x00000010        //    WpBindToSite
  40. #define WPF_NO_URL_LOOKUP                0x00000020        //    WpBindToSite
  41. #define WPF_USE_PROVIDER_PASSED            0x00000040        //    WpCreateSite
  42. #define WPF_NO_VERIFY_POST                0x00000080        //    WpPost
  43. #define WPF_NO_PROGRESS_DLGS            0x00000200        //    WpPost
  44. #define WPF_SHOWPAGE_WELCOME            0x00010000        //    WpPost/Wizard
  45. #define WPF_SHOWPAGE_SRCFILE            0x00020000        //    WpPost/Wizard
  46. #define WPF_SHOWPAGE_DESTSITE            0x00040000        //    WpPost/Wizard
  47. #define WPF_SHOWPAGE_PROVIDER            0x00080000        //    WpPost/Wizard/AddWizardPages
  48. #define WPF_ENABLE_LOCAL_BASE_DIR        0x00100000        //    WpPost/Wizard
  49.  
  50. #define WPF_NO_UI                        WPF_NO_WIZARD | \
  51.                                         WPF_NO_PROGRESS_DLGS
  52.  
  53. #define WPF_SHOWPAGE_ALL                WPF_SHOWPAGE_WELCOME | \
  54.                                         WPF_SHOWPAGE_SRCFILE | \
  55.                                         WPF_SHOWPAGE_DESTSITE | \
  56.                                         WPF_SHOWPAGE_PROVIDER
  57.  
  58.  
  59. //
  60. //    Miscellaneous
  61. //
  62.  
  63. #define MAX_SITENAME_LEN                128
  64.  
  65.  
  66. //
  67. //    Unicode APIs
  68. //
  69.  
  70. #ifdef __cplusplus
  71. extern "C" {
  72. #endif
  73.  
  74. DWORD WINAPI WpPostW(    HWND hwnd, 
  75.                         DWORD dwNumLocalPaths,
  76.                         LPWSTR *pwsLocalPaths, 
  77.                         LPDWORD pdwSiteNameBufLen,
  78.                         LPWSTR wsSiteName,
  79.                         LPDWORD pdwDestURLBufLen,
  80.                         LPWSTR wsDestURL, 
  81.                         DWORD dwFlag);
  82.  
  83. DWORD WINAPI WpListSitesW(    LPDWORD pdwSitesBufLen,
  84.                             LPWPSITEINFOW pSitesBuffer,
  85.                             LPDWORD pdwNumSites);
  86.  
  87. DWORD WINAPI WpDoesSiteExistW(    LPCWSTR wsSiteName,
  88.                                 BOOL *pfSiteExists);
  89.  
  90. DWORD WINAPI WpDeleteSiteW(    LPCWSTR wsSiteName);
  91.  
  92. DWORD WINAPI WpBindToSiteW(    HWND    hwnd,
  93.                             LPCWSTR    wsSiteName,
  94.                             LPCWSTR    wsSitePostingURL,
  95.                             DWORD    dwFlag,
  96.                             DWORD    dwReserved,
  97.                             PVOID     *ppvUnk);
  98.  
  99. DWORD WINAPI WpCreateSiteW(    LPCWSTR wsSiteName,
  100.                             LPCWSTR wsSiteLocalBaseDir,
  101.                             LPCWSTR wsSitePostingURL,
  102.                             LPCWSTR wsProviderCLSID,
  103.                             DWORD dwFlags);
  104.  
  105. DWORD WINAPI WpEnumProvidersW(    LPDWORD pdwProvidersBufLen,
  106.                                 LPWPPROVINFOW pProvidersBuffer,
  107.                                 LPDWORD pdwNumProviders);
  108.  
  109. DWORD WINAPI WpGetErrorStringW(    UINT uErrCode,
  110.                                 LPWSTR wsOutputBuf,
  111.                                 LPDWORD pdwBufLen);
  112.  
  113. //
  114. //    ANSI APIs
  115. //
  116.  
  117. DWORD WINAPI WpPostA(    HWND hwnd,
  118.                         DWORD dwNumLocalPaths,
  119.                         LPSTR *psLocalPaths, 
  120.                         LPDWORD pdwSiteNameBufLen,
  121.                         LPSTR sSiteName,
  122.                         LPDWORD pdwDestURLBufLen,
  123.                         LPSTR sDestURLBufLen, 
  124.                         DWORD dwFlag);
  125.  
  126. DWORD WINAPI WpListSitesA(    LPDWORD pdwSitesBufLen,
  127.                             LPWPSITEINFOA pSitesBuffer,
  128.                             LPDWORD pdwNumSites);
  129.  
  130. DWORD WINAPI WpDoesSiteExistA(    LPCSTR sSiteName,
  131.                                 BOOL *pfSiteExists);
  132.  
  133. DWORD WINAPI WpDeleteSiteA(    LPCSTR sSiteName);
  134.  
  135. DWORD WINAPI WpBindToSiteA(    HWND    hwnd,
  136.                             LPCSTR    sSiteName,
  137.                             LPCSTR    sSitePostingURL,
  138.                             DWORD    dwFlag,
  139.                             DWORD    dwReserved,
  140.                             PVOID     *ppvUnk);
  141.  
  142. DWORD WINAPI WpCreateSiteA(    LPCSTR sSiteName,
  143.                             LPCSTR sSiteLocalBaseDir,
  144.                             LPCSTR sSitePostingURL,
  145.                             LPCSTR sProviderCLSID,
  146.                             DWORD dwFlags);
  147.  
  148. DWORD WINAPI WpEnumProvidersA(    LPDWORD pdwProvidersBufLen,
  149.                                 LPWPPROVINFOA pProvidersBuffer,
  150.                                 LPDWORD pdwNumProviders);
  151.  
  152. DWORD WINAPI WpGetErrorStringA(    UINT uErrCode,
  153.                                 LPSTR sOutputBuf,
  154.                                 LPDWORD pdwBufLen);
  155.  
  156.  
  157. #ifdef __cplusplus
  158. }
  159. #endif
  160.  
  161.  
  162. #ifdef UNICODE
  163.  
  164. #define WpPost                    WpPostW
  165. #define WpListSites                WpListSitesW
  166. #define WpDoesSiteExist            WpDoesSiteExistW
  167. #define WpDeleteSite            WpDeleteSiteW
  168. #define WpBindToSite            WpBindToSiteW
  169. #define WpCreateSite            WpCreateSiteW
  170. #define WpEnumProviders            WpEnumProvidersW
  171. #define WpGetErrorString        WpGetErrorStringW
  172.  
  173. #else
  174.  
  175. #define WpPost                    WpPostA
  176. #define WpListSites                WpListSitesA
  177. #define WpDoesSiteExist            WpDoesSiteExistA
  178. #define WpDeleteSite            WpDeleteSiteA
  179. #define WpBindToSite            WpBindToSiteA
  180. #define WpCreateSite            WpCreateSiteA
  181. #define WpEnumProviders            WpEnumProvidersA
  182. #define WpGetErrorString        WpGetErrorStringA
  183.  
  184. #endif
  185.  
  186.  
  187. #include <poppack.h>
  188.  
  189.  
  190. #pragma option pop /*P_O_Pop*/
  191. #endif // __WP15API_H__
  192.