Microsoft DirectX 8.1 (C++)

IDirectXFileBinary::Read

Reads the binary data.

HRESULT Read(
  LPVOID pvData,
  DWORD cbSize,
  LPDWORD pcbRead
);

Parameters

pvData
[out] Pointer to the buffer that receives the data that has been read.
cbSize
[in] Size of the buffer pointed to by pvData, in bytes.
pcbRead
[out, retval] Pointer to the number of bytes actually read.

Return Values

If the method succeeds, the return value is DXFILE_OK.

If the method fails, the return value can be one of the following values.

DXFILEERR_BADVALUE
DXFILEERR_NOMOREDATA

Requirements

  Header: Declared in Dxfile.h.
  Import Library: Use D3dxof.lib.