blob: c349d5459bc46529b4a90e0df06e551479db3b5c [file] [log] [blame] [edit]
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef __WP15API_H__
#define __WP15API_H__
#include <_mingw_unicode.h>
#include <windows.h>
#include "wptypes.h"
#include <pshpack4.h>
#define WPF_NO_RECURSIVE_POST 0x00000001
#define WPF_NO_WIZARD 0x00000002
#define WPF_MINIMAL_UI 0x00000004
#define WPF_FIRST_FILE_AS_DEFAULT 0x00000008
#define WPF_NO_DIRECT_LOOKUP 0x00000010
#define WPF_NO_URL_LOOKUP 0x00000020
#define WPF_USE_PROVIDER_PASSED 0x00000040
#define WPF_NO_VERIFY_POST 0x00000080
#define WPF_NO_PROGRESS_DLGS 0x00000200
#define WPF_SHOWPAGE_WELCOME 0x00010000
#define WPF_SHOWPAGE_SRCFILE 0x00020000
#define WPF_SHOWPAGE_DESTSITE 0x00040000
#define WPF_SHOWPAGE_PROVIDER 0x00080000
#define WPF_ENABLE_LOCAL_BASE_DIR 0x00100000
#define WPF_NO_UI WPF_NO_WIZARD | WPF_NO_PROGRESS_DLGS
#define WPF_SHOWPAGE_ALL WPF_SHOWPAGE_WELCOME | WPF_SHOWPAGE_SRCFILE | WPF_SHOWPAGE_DESTSITE | WPF_SHOWPAGE_PROVIDER
#define MAX_SITENAME_LEN 128
#ifdef __cplusplus
extern "C" {
#endif
DWORD WINAPI WpPostW(HWND hwnd,DWORD dwNumLocalPaths,LPWSTR *pwsLocalPaths,LPDWORD pdwSiteNameBufLen,LPWSTR wsSiteName,LPDWORD pdwDestURLBufLen,LPWSTR wsDestURL,DWORD dwFlag);
DWORD WINAPI WpListSitesW(LPDWORD pdwSitesBufLen,LPWPSITEINFOW pSitesBuffer,LPDWORD pdwNumSites);
DWORD WINAPI WpDoesSiteExistW(LPCWSTR wsSiteName,WINBOOL *pfSiteExists);
DWORD WINAPI WpDeleteSiteW(LPCWSTR wsSiteName);
DWORD WINAPI WpBindToSiteW(HWND hwnd,LPCWSTR wsSiteName,LPCWSTR wsSitePostingURL,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
DWORD WINAPI WpCreateSiteW(LPCWSTR wsSiteName,LPCWSTR wsSiteLocalBaseDir,LPCWSTR wsSitePostingURL,LPCWSTR wsProviderCLSID,DWORD dwFlags);
DWORD WINAPI WpEnumProvidersW(LPDWORD pdwProvidersBufLen,LPWPPROVINFOW pProvidersBuffer,LPDWORD pdwNumProviders);
DWORD WINAPI WpGetErrorStringW(UINT uErrCode,LPWSTR wsOutputBuf,LPDWORD pdwBufLen);
DWORD WINAPI WpPostA(HWND hwnd,DWORD dwNumLocalPaths,LPSTR *psLocalPaths,LPDWORD pdwSiteNameBufLen,LPSTR sSiteName,LPDWORD pdwDestURLBufLen,LPSTR sDestURLBufLen,DWORD dwFlag);
DWORD WINAPI WpListSitesA(LPDWORD pdwSitesBufLen,LPWPSITEINFOA pSitesBuffer,LPDWORD pdwNumSites);
DWORD WINAPI WpDoesSiteExistA(LPCSTR sSiteName,WINBOOL *pfSiteExists);
DWORD WINAPI WpDeleteSiteA(LPCSTR sSiteName);
DWORD WINAPI WpBindToSiteA(HWND hwnd,LPCSTR sSiteName,LPCSTR sSitePostingURL,DWORD dwFlag,DWORD dwReserved,PVOID *ppvUnk);
DWORD WINAPI WpCreateSiteA(LPCSTR sSiteName,LPCSTR sSiteLocalBaseDir,LPCSTR sSitePostingURL,LPCSTR sProviderCLSID,DWORD dwFlags);
DWORD WINAPI WpEnumProvidersA(LPDWORD pdwProvidersBufLen,LPWPPROVINFOA pProvidersBuffer,LPDWORD pdwNumProviders);
DWORD WINAPI WpGetErrorStringA(UINT uErrCode,LPSTR sOutputBuf,LPDWORD pdwBufLen);
#ifdef __cplusplus
}
#endif
#define WpPost __MINGW_NAME_AW(WpPost)
#define WpListSites __MINGW_NAME_AW(WpListSites)
#define WpDoesSiteExist __MINGW_NAME_AW(WpDoesSiteExist)
#define WpDeleteSite __MINGW_NAME_AW(WpDeleteSite)
#define WpBindToSite __MINGW_NAME_AW(WpBindToSite)
#define WpCreateSite __MINGW_NAME_AW(WpCreateSite)
#define WpEnumProviders __MINGW_NAME_AW(WpEnumProviders)
#define WpGetErrorString __MINGW_NAME_AW(WpGetErrorString)
#include <poppack.h>
#endif