Click to return to the Web Content Management home page    
WpPostEx Function     The Web Publishing SPI     Web Publishing Programmer...    
Web Workshop  |  Web Content Management

WpPostFile Function


Posts files and directories to a desired site.

Syntax

HRESULT WpPostFile(
    LONG hWnd,
    BSTR bstrLocalPath,
    LONG *plSiteNameBufLen,
    BSTR bstrSiteName,
    LONG * plDestURLBufLen,
    BSTR bstrDestURL,
    LONG lFlags,
    LONG * plRetCode
);

Parameters

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
Address of a long integer that receives the return code of the operation.

Return Value

Return values are the same as WpPost.

Remarks

The WpPostFile function is simply a version of the WpPost function that is accessible through WpObj's COM Interface. The functionality is identical to that described in WpPost except as follows:

Function Information

Windows NTUse version 4.0 and later
WindowsUse Windows 95 and later
HeaderDeclared in Wpapi.h
Import LibraryLink with WebPost.lib
Minimum availabilityInternet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.