WbPost: WebPost API Sample

Click to open or copy the files for the WbPost sample.

This sample application shows the usage of WebPost APIs. This example demonstrates calling WpPost for simple usage as well as calling WpBindToSite to get a pointer to the provider interface and calling the functions in the Web post provider.

Run the Webpost.exe to install the WebPost components before using this sample code.

Usage is as follows:

Task Usage
Show usage
wbpost -?
List sites
wbpost -l
Call the wizard
wbpost 
Call the wizard, showing a filename selected
wbpost filename
Post filename to site
wbpost -s site filename

Building SDK Samples

This sample uses the following keywords:

_tprintf; _wpspi_check_iid; _wpspi_iid_lookup; addref; addwizardpages; advancedwebpost; commit; data_seg; declspec_uuid; defined; deletefile; dlldata_routines; enumproviders; exit; extern_proxy_file; failed; findclose; findfirstfile; findnextfile; geterror; geterrorstring; getparam; getsiteinfo; hresult_code; iid_generic_check_iid; iwpprovider_addref; iwpprovider_addwizardpages; iwpprovider_commit; iwpprovider_deletefile; iwpprovider_findclose; iwpprovider_findfirstfile; iwpprovider_findnextfile; iwpprovider_geterror; iwpprovider_getparam; iwpprovider_getsiteinfo; iwpprovider_networkconnect; iwpprovider_networkdisconnect; iwpprovider_postfiles; iwpprovider_queryinterface; iwpprovider_release; iwpprovider_serverlogin; iwpprovider_serverlogout; iwpprovider_setparam; iwpprovider_setprogressupdateproc; iwpprovider_setprogressupdateproc_proxy; iwpprovider_setprogressupdateproc_stub; iwpsitew_addref; iwpsitew_addwizardpages; iwpsitew_addwizardpages_proxy; iwpsitew_addwizardpages_stub; iwpsitew_commit; iwpsitew_commit_proxy; iwpsitew_commit_stub; iwpsitew_deletefile; iwpsitew_deletefile_proxy; iwpsitew_deletefile_stub; iwpsitew_findclose; iwpsitew_findclose_proxy; iwpsitew_findclose_stub; iwpsitew_findfirstfile; iwpsitew_findfirstfile_proxy; iwpsitew_findfirstfile_stub; iwpsitew_findnextfile; iwpsitew_findnextfile_proxy; iwpsitew_findnextfile_stub; iwpsitew_geterror; iwpsitew_geterror_proxy; iwpsitew_geterror_stub; iwpsitew_getparam; iwpsitew_getparam_proxy; iwpsitew_getparam_stub; iwpsitew_getsiteinfo; iwpsitew_getsiteinfo_proxy; iwpsitew_getsiteinfo_stub; iwpsitew_networkconnect; iwpsitew_networkconnect_proxy; iwpsitew_networkconnect_stub; iwpsitew_networkdisconnect; iwpsitew_networkdisconnect_proxy; iwpsitew_networkdisconnect_stub; iwpsitew_postfiles; iwpsitew_postfiles_proxy; iwpsitew_postfiles_stub; iwpsitew_queryinterface; iwpsitew_release; iwpsitew_serverlogin; iwpsitew_serverlogin_proxy; iwpsitew_serverlogin_stub; iwpsitew_serverlogout; iwpsitew_serverlogout_proxy; iwpsitew_serverlogout_stub; iwpsitew_setparam; iwpsitew_setparam_proxy; iwpsitew_setparam_stub; listsites; lstrlena; midl_user_allocate; midl_user_free; multibytetowidechar; networkconnect; networkdisconnect; postfiles; printf; queryinterface; reference_proxy_file; release; serverlogin; serverlogout; setparam; setprogressupdateproc; simplewebpost; usage; wpbindtosite; wpenumproviders; wpgeterrorstring; wplistsites; wppost; wprintf