wpspihlp.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #include <windows.h>
  9. #include "wptypes.h"
  10. #define WPPFUNC __declspec(dllimport)
  11. #define WPF_FORCE_BIND 0x00000100
  12. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEA)(HWND hwnd,LPCSTR sSiteName,LPCSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
  13. typedef HRESULT (WINAPI *PFN_WPPLISTSITESA)(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
  14. typedef HRESULT (WINAPI *PFN_WPPDELETESITEA)(LPCSTR sSiteName);
  15. typedef HRESULT (WINAPI *PFN_WPPBINDTOSITEW)(HWND hwnd,LPCWSTR sSiteName,LPCWSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
  16. typedef HRESULT (WINAPI *PFN_WPPLISTSITESW)(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
  17. typedef HRESULT (WINAPI *PFN_WPPDELETESITEW)(LPCWSTR sSiteName);
  18. HRESULT WPPFUNC WINAPI WppBindToSiteA(HWND hwnd,LPCSTR sSiteName,LPCSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
  19. HRESULT WPPFUNC WINAPI WppListSitesA(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
  20. HRESULT WPPFUNC WINAPI WppDeleteSiteA(LPCSTR sSiteName);
  21. HRESULT WPPFUNC WINAPI WppBindToSiteW(HWND hwnd,LPCWSTR sSiteName,LPCWSTR sURL,REFIID riid,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
  22. HRESULT WPPFUNC WINAPI WppListSitesW(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
  23. HRESULT WPPFUNC WINAPI WppDeleteSiteW(LPCWSTR sSiteName);
  24. #define EP_WPPBINDTOSITEW "WppBindToSiteW"
  25. #define EP_WPPLISTSITESW "WppListSitesW"
  26. #define EP_WPPDELETESITEW "WppDeleteSiteW"
  27. #define EP_WPPBINDTOSITEA "WppBindToSiteA"
  28. #define EP_WPPLISTSITESA "WppListSitesA"
  29. #define EP_WPPDELETESITEA "WppDeleteSiteA"
  30. #endif