Share via


Creating a Notification Sink (Windows Embedded CE 6.0)

1/6/2010

To be notified of events by the Pocket IME conversion service, you need to implement the IImeIPointNotifySink interface. The following code sample shows how to create and register an IImeIPointNotifySink object:

Note

To make the following code example easier to read, error checking is not included. This code example should not be used in a release configuration unless it has been modified to include secure error handling.

// Create a notification sink 
pIPSink = new ImeIPointNotifySink;
pIPSink->AddRef();
// And register it with the conversion service
hRes = pIP->Initialize(pIPSink);

See Also

Concepts

Accessing the Conversion Service
Processing User Input from the Keyboard
Editing the Composition String
Processing User Input with Alternatives
Converting a Composition String
Creating the Candidate List
Determining the Composition String

Other Resources

Using the IImeIPoint2 Interface