home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / wpspihlp.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  134 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. #define __WPSPIHLP_H__
  26.  
  27.  
  28. #include <windows.h>
  29. #include "wptypes.h"
  30.  
  31.  
  32. #if defined(IN_WPPDLL)
  33. #define WPPFUNC    __declspec( dllexport )
  34. #else
  35. #define WPPFUNC    __declspec( dllimport )
  36. #endif    //    IN_WPPDLL
  37.  
  38.  
  39. //
  40. //    Flags
  41. //
  42.  
  43. #define WPF_FORCE_BIND                    0x00000100        //    WppBindToSite
  44.  
  45.  
  46. //
  47. //    Helper function declarations and typedefs
  48. //
  49.  
  50. HRESULT WPPFUNC WINAPI WppBindToSiteA(
  51.     HWND    hwnd,
  52.     LPCSTR    sSiteName,
  53.     LPCSTR    sURL,
  54.     REFIID    riid,
  55.     DWORD    dwFlag,
  56.     DWORD    dwReserved,
  57.     PVOID     *ppvUnk);
  58.  
  59. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEA)(
  60.                         HWND    hwnd,
  61.                         LPCSTR    sSiteName,
  62.                         LPCSTR    sURL,
  63.                         REFIID     riid,
  64.                         DWORD    dwFlag,
  65.                         DWORD    dwReserved,
  66.                         PVOID     *ppvUnk);
  67.  
  68.  
  69. HRESULT WPPFUNC WINAPI WppListSitesA(
  70.     LPDWORD            pdwSitesBufLen,
  71.     LPWPSITEINFOA    pSitesBuffer,
  72.     LPDWORD            pdwNumSites);
  73.  
  74. typedef HRESULT (WINAPI *PFN_WPPLISTSITESA)(
  75.                         LPDWORD            pdwSitesBufLen,
  76.                         LPWPSITEINFOA    pSitesBuffer,
  77.                         LPDWORD            pdwNumSites);
  78.  
  79.                                         
  80. HRESULT WPPFUNC WINAPI WppDeleteSiteA(LPCSTR sSiteName);
  81.  
  82. typedef HRESULT (WINAPI *PFN_WPPDELETESITEA)(LPCSTR sSiteName);
  83.  
  84.  
  85. HRESULT WPPFUNC WINAPI WppBindToSiteW(
  86.     HWND    hwnd,
  87.     LPCWSTR    sSiteName,
  88.     LPCWSTR    sURL,
  89.     REFIID    riid,
  90.     DWORD    dwFlag,
  91.     DWORD    dwReserved,
  92.     PVOID     *ppvUnk);
  93.  
  94. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEW)(
  95.                         HWND    hwnd,
  96.                         LPCWSTR sSiteName,
  97.                         LPCWSTR    sURL,
  98.                         REFIID     riid,
  99.                         DWORD    dwFlag,
  100.                         DWORD    dwReserved,
  101.                         PVOID     *ppvUnk);
  102.  
  103. HRESULT WPPFUNC WINAPI WppListSitesW(
  104.     LPDWORD            pdwSitesBufLen,
  105.     LPWPSITEINFOW    pSitesBuffer,
  106.     LPDWORD            pdwNumSites);
  107.  
  108. typedef HRESULT (WINAPI *PFN_WPPLISTSITESW)(
  109.                         LPDWORD            pdwSitesBufLen,
  110.                         LPWPSITEINFOW    pSitesBuffer,
  111.                         LPDWORD            pdwNumSites);
  112.                                         
  113. HRESULT WPPFUNC WINAPI WppDeleteSiteW(LPCWSTR sSiteName);
  114.  
  115. typedef HRESULT (WINAPI *PFN_WPPDELETESITEW)(LPCWSTR sSiteName);
  116.  
  117.  
  118. //
  119. //    Entry Points
  120. //
  121.  
  122. #define    EP_WPPBINDTOSITEW    "WppBindToSiteW"
  123. #define EP_WPPLISTSITESW    "WppListSitesW"
  124. #define EP_WPPDELETESITEW    "WppDeleteSiteW"
  125.  
  126. #define EP_WPPBINDTOSITEA    "WppBindToSiteA"
  127. #define EP_WPPLISTSITESA    "WppListSitesA"
  128. #define EP_WPPDELETESITEA    "WppDeleteSiteA"
  129.  
  130.  
  131.  
  132. #endif    // __WPSPIHLP_H__
  133.  
  134.