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