WMCheckURLScheme function
The WMCheckURLScheme function examines a network protocol and compares it to an internal list of supported schemes. If you are writing an application that can handle many different network protocols, you can use this function to ascertain quickly whether a network address can be handled using the methods of the Windows Media Format SDK.
Syntax
HRESULT WMCheckURLScheme(
LPCWSTR pwszURLScheme
);
Parameters
pwszURLScheme
A wide-character null-terminated string containing a network protocol designation, such as "http".
Return value
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The function succeeded. |
|
The URL passed does not conform to any of the commonly used schemes. |
Remarks
This function cannot report with absolute certainty whether a particular URL can be handled, as this cannot be determined until the URL is opened.
Requirements
| Minimum supported client | Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | wmsdkvalidate.h (include Wmsdkidl.h) |
| Library | Wmvcore.lib |
| DLL | Wmvcore.dll |