+ es.dwCookie = (DWORD_PTR)&streamTextUTF8BOM;
+ es.dwError = 0;
+ es.pfnCallback = test_EM_STREAMIN_esCallback;
+ result = SendMessage(hwndRichEdit, EM_STREAMIN, SF_TEXT, (LPARAM)&es);
+ ok(result == 18, "got %ld, expected %d\n", result, 18);
+
+ result = SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
+ ok(result == 15,
+ "EM_STREAMIN: Test UTF8WithBOM returned %ld, expected 15\n", result);
+ result = strcmp (buffer,"TestUTF8WithBOM");
+ ok(result == 0,
+ "EM_STREAMIN: Test UTF8WithBOM set wrong text: Result: %s\n",buffer);
+ ok(es.dwError == 0, "EM_STREAMIN: Test UTF8WithBOM set error %d, expected %d\n", es.dwError, 0);
+