Click to return to the Networking, Protocols     
IsAsyncMoniker Function     MkParseDisplayNameEx Func...     URL Monikers Functions    
Web Workshop  |  Networking, Protocols & Data Formats

IsValidURL Function


Determines if a specified string is a valid URL.

Syntax

HRESULT IsValidURL(
    LPBC pBC,
    LPCWSTR szURL,
    DWORD dwReserved
);

Parameters

pBC
[in] Address of the IBindCtx interface. This parameter is optional and is currently ignored. It should be set to NULL.
szURL
[in] Address of a string value that contains the full URL to be checked.
dwReserved
[in] Reserved for future use. This must be set to zero.

Return Value

Returns one of the following values:

S_OK The szURL parameter contains a valid URL.
S_FALSE The szURL parameter does not contain a valid URL.
E_INVALIDARG One of the parameters is invalid.

Function Information

Windows NT Use version 4.0. Implemented as a Unicode function.
Windows Use Windows 95 and later. Implemented as a Unicode function.
Header Urlmon.h
Import Library Urlmon.lib
Minimum availability Internet Explorer 3.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.