PostFilesPostFiles*
*



Contents  *



Index  *Topic Contents
*Previous Topic: NetworkDisconnect
*Next Topic: ServerLogin

PostFiles

HRESULT PostFiles(
	[in] 		DWORD 	cLocalPaths
	[in, string] 	LPWSTR *	pwsLocalPaths
	[in, out] 		LPDWORD 	pdwURLBufLen
	[in, out, string]	LPWSTR 	wsURL
	[in] 		DWORD 	fdwFlags
	);

Posts files to the specified URL on the destination site identified by this object.

cLocalPaths
Number of elements in the pwsLocalPaths array.
pwsLocalPaths
Address of an array of null-terminated strings that contain the file names or directories to be posted on the Internet. If any of these strings point to a directory and the WPF_NO_RECURSIVE_POST flag is not set in fdwFlags, all the files in that directory are posted.
pdwURLBufLen
Address of a variable that indicates the length of the wsURL buffer. When the function returns, the variable contains the length, in bytes, of the that buffer.
wsURL
Optional. Address of a null-terminated string that contains the destination URL. If this parameter is NULL, the files are posted in the root URL for the site.

If this parameter is not NULL, the URL of the copied file, or the URL of the directory that the files were copied to, is returned in the buffer pointed to by this parameter.

fdwFlags
Action flags.
Value Meaning
WPF_NO_RECURSIVE_POST If any element in the pwsLocalPaths array points to a directory, do not post files recursively.

Changes for version 1.5:
Service providers are no longer required to support the posting of multiple files. It is not a violation of the interface contract for a service provider to return failure if cLocalPaths is greater than 1.
If a callback function has been specified to the service provider with a previous call into SetProgressUpdateProc, the service provider should call the callback function while posting. See the description of SetProgressUpdateProc for more information.

See also WpPost


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