home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / wpspihlp.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  3KB  |  136 lines

  1. /*------------------------------------------------*\
  2.  *
  3.  *    Copyright 1997 - 1998 Microsoft Corporation
  4.  *
  5.  *    Module Name:
  6.  *
  7.  *        wpspihlp.h
  8.  *
  9.  *    Abstract:
  10.  *
  11.  *        Declaration of Microsoft Web Publishing
  12.  *        Service Provider helper functions.
  13.  *
  14.  *    Note:
  15.  *
  16.  *        If you are #including this file in
  17.  *        a Web Publishing Service Provider
  18.  *        implementation, you should first
  19.  *        #define IN_WPPDLL.
  20.  *
  21. \*------------------------------------------------*/
  22.  
  23.  
  24. #ifndef __WPSPIHLP_H__
  25. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  26. #define __WPSPIHLP_H__
  27.  
  28.  
  29. #include <windows.h>
  30. #include "wptypes.h"
  31.  
  32.  
  33. #if defined(IN_WPPDLL)
  34. #define WPPFUNC    __declspec( dllexport )
  35. #else
  36. #define WPPFUNC    __declspec( dllimport )
  37. #endif    //    IN_WPPDLL
  38.  
  39.  
  40. //
  41. //    Flags
  42. //
  43.  
  44. #define WPF_FORCE_BIND                    0x00000100        //    WppBindToSite
  45.  
  46.  
  47. //
  48. //    Helper function declarations and typedefs
  49. //
  50.  
  51. HRESULT WPPFUNC WINAPI WppBindToSiteA(
  52.     HWND    hwnd,
  53.     LPCSTR    sSiteName,
  54.     LPCSTR    sURL,
  55.     REFIID    riid,
  56.     DWORD    dwFlag,
  57.     DWORD    dwReserved,
  58.     PVOID     *ppvUnk);
  59.  
  60. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEA)(
  61.                         HWND    hwnd,
  62.                         LPCSTR    sSiteName,
  63.                         LPCSTR    sURL,
  64.                         REFIID     riid,
  65.                         DWORD    dwFlag,
  66.                         DWORD    dwReserved,
  67.                         PVOID     *ppvUnk);
  68.  
  69.  
  70. HRESULT WPPFUNC WINAPI WppListSitesA(
  71.     LPDWORD            pdwSitesBufLen,
  72.     LPWPSITEINFOA    pSitesBuffer,
  73.     LPDWORD            pdwNumSites);
  74.  
  75. typedef HRESULT (WINAPI *PFN_WPPLISTSITESA)(
  76.                         LPDWORD            pdwSitesBufLen,
  77.                         LPWPSITEINFOA    pSitesBuffer,
  78.                         LPDWORD            pdwNumSites);
  79.  
  80.                                         
  81. HRESULT WPPFUNC WINAPI WppDeleteSiteA(LPCSTR sSiteName);
  82.  
  83. typedef HRESULT (WINAPI *PFN_WPPDELETESITEA)(LPCSTR sSiteName);
  84.  
  85.  
  86. HRESULT WPPFUNC WINAPI WppBindToSiteW(
  87.     HWND    hwnd,
  88.     LPCWSTR    sSiteName,
  89.     LPCWSTR    sURL,
  90.     REFIID    riid,
  91.     DWORD    dwFlag,
  92.     DWORD    dwReserved,
  93.     PVOID     *ppvUnk);
  94.  
  95. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEW)(
  96.                         HWND    hwnd,
  97.                         LPCWSTR sSiteName,
  98.                         LPCWSTR    sURL,
  99.                         REFIID     riid,
  100.                         DWORD    dwFlag,
  101.                         DWORD    dwReserved,
  102.                         PVOID     *ppvUnk);
  103.  
  104. HRESULT WPPFUNC WINAPI WppListSitesW(
  105.     LPDWORD            pdwSitesBufLen,
  106.     LPWPSITEINFOW    pSitesBuffer,
  107.     LPDWORD            pdwNumSites);
  108.  
  109. typedef HRESULT (WINAPI *PFN_WPPLISTSITESW)(
  110.                         LPDWORD            pdwSitesBufLen,
  111.                         LPWPSITEINFOW    pSitesBuffer,
  112.                         LPDWORD            pdwNumSites);
  113.                                         
  114. HRESULT WPPFUNC WINAPI WppDeleteSiteW(LPCWSTR sSiteName);
  115.  
  116. typedef HRESULT (WINAPI *PFN_WPPDELETESITEW)(LPCWSTR sSiteName);
  117.  
  118.  
  119. //
  120. //    Entry Points
  121. //
  122.  
  123. #define    EP_WPPBINDTOSITEW    "WppBindToSiteW"
  124. #define EP_WPPLISTSITESW    "WppListSitesW"
  125. #define EP_WPPDELETESITEW    "WppDeleteSiteW"
  126.  
  127. #define EP_WPPBINDTOSITEA    "WppBindToSiteA"
  128. #define EP_WPPLISTSITESA    "WppListSitesA"
  129. #define EP_WPPDELETESITEA    "WppDeleteSiteA"
  130.  
  131.  
  132.  
  133. #pragma option pop /*P_O_Pop*/
  134. #endif    // __WPSPIHLP_H__
  135.  
  136.