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 __WP15API_H__
      7 #define __WP15API_H__
      8 
      9 #include <_mingw_unicode.h>
     10 #include <windows.h>
     11 #include "wptypes.h"
     12 
     13 #include <pshpack4.h>
     14 
     15 #define WPF_NO_RECURSIVE_POST 0x00000001
     16 #define WPF_NO_WIZARD 0x00000002
     17 #define WPF_MINIMAL_UI 0x00000004
     18 #define WPF_FIRST_FILE_AS_DEFAULT 0x00000008
     19 #define WPF_NO_DIRECT_LOOKUP 0x00000010
     20 #define WPF_NO_URL_LOOKUP 0x00000020
     21 #define WPF_USE_PROVIDER_PASSED 0x00000040
     22 #define WPF_NO_VERIFY_POST 0x00000080
     23 #define WPF_NO_PROGRESS_DLGS 0x00000200
     24 #define WPF_SHOWPAGE_WELCOME 0x00010000
     25 #define WPF_SHOWPAGE_SRCFILE 0x00020000
     26 #define WPF_SHOWPAGE_DESTSITE 0x00040000
     27 #define WPF_SHOWPAGE_PROVIDER 0x00080000
     28 #define WPF_ENABLE_LOCAL_BASE_DIR 0x00100000
     29 #define WPF_NO_UI WPF_NO_WIZARD | WPF_NO_PROGRESS_DLGS
     30 #define WPF_SHOWPAGE_ALL WPF_SHOWPAGE_WELCOME | WPF_SHOWPAGE_SRCFILE | WPF_SHOWPAGE_DESTSITE | WPF_SHOWPAGE_PROVIDER
     31 
     32 #define MAX_SITENAME_LEN 128
     33 
     34 #ifdef __cplusplus
     35 extern "C" {
     36 #endif
     37 
     38   DWORD WINAPI WpPostW(HWND hwnd,DWORD dwNumLocalPaths,LPWSTR *pwsLocalPaths,LPDWORD pdwSiteNameBufLen,LPWSTR wsSiteName,LPDWORD pdwDestURLBufLen,LPWSTR wsDestURL,DWORD dwFlag);
     39   DWORD WINAPI WpListSitesW(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
     40   DWORD WINAPI WpDoesSiteExistW(LPCWSTR wsSiteName,WINBOOL *pfSiteExists);
     41   DWORD WINAPI WpDeleteSiteW(LPCWSTR wsSiteName);
     42   DWORD WINAPI WpBindToSiteW(HWND hwnd,LPCWSTR wsSiteName,LPCWSTR wsSitePostingURL,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     43   DWORD WINAPI WpCreateSiteW(LPCWSTR wsSiteName,LPCWSTR wsSiteLocalBaseDir,LPCWSTR wsSitePostingURL,LPCWSTR wsProviderCLSID,DWORD dwFlags);
     44   DWORD WINAPI WpEnumProvidersW(LPDWORD pdwProvidersBufLen,LPWPPROVINFOW pProvidersBuffer,LPDWORD pdwNumProviders);
     45   DWORD WINAPI WpGetErrorStringW(UINT uErrCode,LPWSTR wsOutputBuf,LPDWORD pdwBufLen);
     46   DWORD WINAPI WpPostA(HWND hwnd,DWORD dwNumLocalPaths,LPSTR *psLocalPaths,LPDWORD pdwSiteNameBufLen,LPSTR sSiteName,LPDWORD pdwDestURLBufLen,LPSTR sDestURLBufLen,DWORD dwFlag);
     47   DWORD WINAPI WpListSitesA(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
     48   DWORD WINAPI WpDoesSiteExistA(LPCSTR sSiteName,WINBOOL *pfSiteExists);
     49   DWORD WINAPI WpDeleteSiteA(LPCSTR sSiteName);
     50   DWORD WINAPI WpBindToSiteA(HWND hwnd,LPCSTR sSiteName,LPCSTR sSitePostingURL,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
     51   DWORD WINAPI WpCreateSiteA(LPCSTR sSiteName,LPCSTR sSiteLocalBaseDir,LPCSTR sSitePostingURL,LPCSTR sProviderCLSID,DWORD dwFlags);
     52   DWORD WINAPI WpEnumProvidersA(LPDWORD pdwProvidersBufLen,LPWPPROVINFOA pProvidersBuffer,LPDWORD pdwNumProviders);
     53   DWORD WINAPI WpGetErrorStringA(UINT uErrCode,LPSTR sOutputBuf,LPDWORD pdwBufLen);
     54 
     55 #ifdef __cplusplus
     56 }
     57 #endif
     58 
     59 #define WpPost __MINGW_NAME_AW(WpPost)
     60 #define WpListSites __MINGW_NAME_AW(WpListSites)
     61 #define WpDoesSiteExist __MINGW_NAME_AW(WpDoesSiteExist)
     62 #define WpDeleteSite __MINGW_NAME_AW(WpDeleteSite)
     63 #define WpBindToSite __MINGW_NAME_AW(WpBindToSite)
     64 #define WpCreateSite __MINGW_NAME_AW(WpCreateSite)
     65 #define WpEnumProviders __MINGW_NAME_AW(WpEnumProviders)
     66 #define WpGetErrorString __MINGW_NAME_AW(WpGetErrorString)
     67 
     68 #include <poppack.h>
     69 #endif
     70