Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The EDITSTREAMstructure contains information that an application passes to a rich edit control in an EM_STREAMIN or EM_STREAMOUT message. The rich edit control uses the information to transfer a stream of data into or out of the control.

Syntax

typedef struct_ editstream {
	DWORD_PTR 
dwCookie;
	DWORD 
dwError;
	EDITSTREAMCALLBACK 
pfnCallback;
} EDITSTREAM;

Members

dwCookie

The pointer to the user value passed to callback as first parameter.

Specifies an application–defined value that the rich edit control passes to the EditStreamCallbackcallback function specified by the pfnCallbackmember.

Note:
Prior to Windows Mobile 6.5, this parameter was a DWORD, not a DWORD_PTR.
dwError

Indicates the results of the stream–in (read) or stream–out (write) operation. A value of zero indicates no error.

A nonzero value may be either the return value of the EditStreamCallbackfunction or a code indicating that the control encountered an error.

pfnCallback

Pointer to an EditStreamCallbackfunction, which is an application–defined function that the control calls to transfer data. The control invokes the callback function repeatedly, transferring a portion of the data with each call.

Requirements

Header richink.h
Library richink.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later

See Also