Retrieves the address of an interface if the provider DLL owns the site name or the URL.
Syntax
LONG WppBindToSite( HWND hwnd, LPCTSTR wsSiteName, LPCTSTR wsURL, REFIID riid, DWORD fdwFlags, DWORD dwReserved, PVOID *ppvObj );
Parameters
- hwnd
- Handle of the window to which the focus returns when the wizard, if invoked, completes. This parameter can be NULL if the wizard is not invoked or if this function is called from a console application.
- wsSiteName
- Optional. Address of a null-terminated string that contains an Internet site name.
- wsURL
- Optional. Address of a null-terminated string that contains a URL.
- riid
- Interface identifier. All providers should support the IID_IWPSite Interface identifier. Provider implementations that implement IWPProvider should also support the IID_IWPProvider ID.
- fdwFlags
- Action flags. Possible values are shown in the following list.
- WPF_FORCE_BIND
- The provider should not query the site to see whether it can post to it (that is, do not test whether the protocol used by the provider is supported by the server).
- dwReserved
- Reserved. Must be set to zero.
- ppvObj
- Address of a variable to receive the interface address.
Return Value
Returns ERROR_SUCCESS if successful, or an error code otherwise.
Function Information
Windows NT Use version 4.0 and later Windows Use Windows 95 and later Header Declared in Wpapi.h Import Library Link with WebPost.lib Minimum availability Internet Explorer 4.0