ReadAt Method of the IFWXIOBuffer Interface

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

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

pv

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

cb

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

S_OK

The method succeeded.

E_INVALIDARG

Invalid parameter.

E_POINTER

Null pointer argument.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXIOBuffer


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.