Windows Media Format SDK banner art
PreviousNext

IMDSPObject::Read

The Read method reads data from the object at the current position.

Syntax

HRESULT Read(
  BYTE*  pData,
  DWORD*  pdwSize,
  BYTE  abMac[WMDM_MAC_LENGTH]
);

Parameters

  pData

[out]  Pointer to a buffer to receive the data read from the object. This parameter is included in the output message authentication code and is encrypted.

  pdwSize

[in, out]  Pointer to a double word specifying the number of bytes of  data to read. Upon return, this parameter contains the actual amount of data read. This parameter must be included in the input message authentication code.

  abMac

[in, out]  Array of eight bytes containing the message authentication code for the parameter data of this method. (WMDM_MAC_LENGTH is defined as 8.)

Return Values

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

Return code Description
WMDM_E_BUSY The media device is busy.
E_INVALIDARG A parameter is an invalid or NULL pointer.
WMDM_E_INTERFACEDEAD The file or folder was previously deleted.
E_FAIL An unspecified error occurred.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.