WpPostFileWpPostFile*
*Contents  *Index  *Topic Contents
*Previous Topic: WpPostEx
*Next Topic: The Web Publishing SPI

WpPostFile

HRESULT WpPostFile(
	[in]		LONG	 	hWnd
	[in]		BSTR		bstrLocalPath
	[in, out]		LONG *	plSiteNameBufLen
	[in, out]		BSTR		bstrSiteName
	[in, out]		LONG *	plDestURLBufLen
	[in, out]		BSTR		bstrDestURL
	[in]		LONG		lFlags
	[out, retval]	LONG *	plRetCode
	);

Simply a version of WpPost accessible through WpObj's COM Interface. The functionality is identical to that described in WpPost except as follows:
WpPostFile can only accept a single file for posting (although that file may be a directory, in which case all files within it will be posted.)
The WPF_NO_WIZARD flag is disabled, and the WPF_SHOWPAGE_SRCFILE flag is automatically set. This is to ensure that users who may download a Web page that uses this method are always prompted before any files can be uploaded from their machine.

hWnd
Same as WpPost.
bstrLocalPath
String name of a single file or directory to be posted. If the string specifies a directory (and the WPF_NO_RECURSIVE_POST flag is not set in the lFlags parameter), all the files in that directory are posted.
plSiteNameBufLen
Same as WpPost.
bstrSiteName
Same as WpPost.
plDestURLBufLen
Same as WpPost.
bstrDestURL
Same as WpPost.
lFlags
Same as WpPost.
plRetCode
Pointer to a long integer that receives the return code of the operation.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.