READEMBEDPROC function pointer

Client-provided callback function, used by TTGetEmbeddedFontInfo and TTLoadEmbeddedFont to read stream contents from a buffer.

Syntax

typedef unsigned long ( WINAPIV *READEMBEDPROC)(
  _In_       void          *lpvReadStream,
  _In_       void          *lpvBuffer,
  _In_ const unsigned long cbBuffer
);

Parameters

  • lpvReadStream [in]
    Stream identifier (file handle or other) of the input stream (font structure).

  • lpvBuffer [in]
    Address of buffer to which to write data.

  • cbBuffer [in]
    Number of bytes to read (from stream to buffer).

Return value

Returns the number of bytes successfully read. In the event of failure, no special error codes are returned. The system function that called this will detect failure from the fact that not as many bytes were read as were requested.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

T2embapi.h

See also

WRITEEMBEDPROC

TTGetEmbeddedFontInfo

TTLoadEmbeddedFont