Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1005 Bytes

IsValidURL.md

File metadata and controls

54 lines (39 loc) · 1005 Bytes

Home

Function name : IsValidURL

Group: URL Monikers - Library: urlmon


Determines if a specified string is a valid URL.


Code examples:

Validating URLs using moniker functions

Declaration:

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

FoxPro declaration:

DECLARE INTEGER IsValidURL IN urlmon;
	INTEGER pBC,;
	STRING  szURL,;
	INTEGER dwReserved  

Parameters:

pBC [in] Pointer to the IBindCtx interface. This parameter is currently ignored. It should be set to NULL.

szURL [in] Pointer to a string value that contains the full URL to be checked.

dwReserved [in] Reserved. Must be set to 0.


Return value:

Returns one of the following values: S_OK = 0 S_FALSE = 1 E_INVALIDARG = 0x80070057