Previous | Next |
The WMCreateReader method creates an IWMReader object.
Syntax
HRESULT WMCreateReader(
IUnknown* pUnkReserved
DWORD dwRights
IWMReader** ppReader
);
Parameters
pUnkReserved
[in] Pointer to an IUnknown object. This value must be set to NULL.
dwRights
[in] Double word value indicating the desired operation. When playing back non-DRM content, or for an application that does not have DRM rights, this value can be set to 0 (zero). Otherwise, this value must be one of the values from the WMT_RIGHTS enumeration type, indicating the operation that will be performed on this file. If multiple operations are being performed, dwRights must be a bitwise-OR operator of multiple values from WMT_RIGHTS.
ppReader
[out] If the method succeeds, pointer to a pointer to an IWMReader object.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Meaning |
E_OUTOFMEMORY | There is not enough available memory. |
See Also
Previous | Next |