IFWXIOBuffer::ReadAt method

Applies to: desktop apps only

The ReadAt method reads a specified number of bytes starting at a specified offset from the beginning of the buffer.

Syntax


HRESULT ReadAt(
  [in]   ULONG ulOffset,
  [out]  void *pv,
  [in]   ULONG cb,
  ULONG *pcbRead
);

Parameters

ulOffset [in]

Specifies the starting point from the beginning of the buffer for reading data.

pv [out]

Pointer to the buffer into which the buffer content is copied.

cb [in]

Specifies the number of bytes to attempt to read from the byte buffer.

pcbRead

Pointer to a location where this method writes the actual number of bytes copied from the buffer. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes copied.

Return value

This method can return one of these values.

S_OK

The method succeeded.

E_INVALIDARG

Invalid parameter.

E_POINTER

Null pointer argument.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXIOBuffer

 

 

Build date: 7/12/2010

Show: