Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef __WPSPIHLP_H__
      7 #define __WPSPIHLP_H__
      8 
      9 #include <windows.h>
     10 #include "wptypes.h"
     11 
     12 #define WPPFUNC __declspec(dllimport)
     13 
     14 #define WPF_FORCE_BIND 0x00000100
     15 
     16 typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEA)(HWND hwnd,LPCSTR sSiteName,LPCSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     17 typedef HRESULT (WINAPI *PFN_WPPLISTSITESA)(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
     18 typedef HRESULT (WINAPI *PFN_WPPDELETESITEA)(LPCSTR sSiteName);
     19 typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEW)(HWND hwnd,LPCWSTR sSiteName,LPCWSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     20 typedef HRESULT (WINAPI *PFN_WPPLISTSITESW)(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
     21 typedef HRESULT (WINAPI *PFN_WPPDELETESITEW)(LPCWSTR sSiteName);
     22 
     23 HRESULT WPPFUNC WINAPI WppBindToSiteA(HWND hwnd,LPCSTR sSiteName,LPCSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     24 HRESULT WPPFUNC WINAPI WppListSitesA(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
     25 HRESULT WPPFUNC WINAPI WppDeleteSiteA(LPCSTR sSiteName);
     26 HRESULT WPPFUNC WINAPI WppBindToSiteW(HWND hwnd,LPCWSTR sSiteName,LPCWSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     27 HRESULT WPPFUNC WINAPI WppListSitesW(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
     28 HRESULT WPPFUNC WINAPI WppDeleteSiteW(LPCWSTR sSiteName);
     29 
     30 #define EP_WPPBINDTOSITEW "WppBindToSiteW"
     31 #define EP_WPPLISTSITESW "WppListSitesW"
     32 #define EP_WPPDELETESITEW "WppDeleteSiteW"
     33 
     34 #define EP_WPPBINDTOSITEA "WppBindToSiteA"
     35 #define EP_WPPLISTSITESA "WppListSitesA"
     36 #define EP_WPPDELETESITEA "WppDeleteSiteA"
     37 #endif
     38