Windows Media Format SDK banner art
PreviousNext

IWMReader::Open

The Open method opens a Windows Media file for reading.

Syntax

HRESULT Open(
  const WCHAR*  pwszURL,
  IWMReaderCallback*  pCallback
  void*  pvContext
);

Parameters

  pwszURL

[in]  Pointer to a wide-character NULL-terminated string containing the URL.

  pCallback

[in]  Pointer to a callback.

  pvContext

[in]  Universal pointer to the context.  This context is passed to the user on calls to IWMReaderCallback.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Meaning
E_POINTER The pCallback parameter is NULL.
E_OUTOFMEMORY There is not enough available memory.
E_UNEXPECTED The method failed for an unspecified reason.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.