WMIsAvailableOffline function
The WMIsAvailableOffline function verifies that an ASF file can be played from a cached copy. If a user plays a file from a network location, part or all of the file may be stored in a cache. If that cached copy exists on the local machine, the user may be able to play the file without being connected to the network.
Syntax
HRESULT WMIsAvailableOffline(
LPCWSTR pwszURL,
LPCWSTR pwszLanguage,
BOOL *pfIsAvailableOffline
);
Parameters
pwszURL
Wide-character null-terminated string containing the URL of the file to be checked.
pwszLanguage
Wide-character null-terminated string containing the RFC 1766-compliant language ID specifying which language is desired for playback. This value is only important for files that contain language-based mutual exclusion.
Set to NULL if all languages are acceptable.
pfIsAvailableOffline
Pointer to a Boolean value that is set to True if the file is available offline.
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. |
|
One or both of the input parameters are NULL. |
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 |