title: How to detect incomplete multibyte character in WinAPI?
body: <p>I'm using <a href="http://msdn.microsoft.com/en-us/library/dd319072%28v=vs.85%29.aspx" rel="nofollow">MultiByteToWideChar</a> to convert an UTF-8 encoded stream to wide characters. When there is an incomplete character and the end of conversion buffer, this function replaces it with '?' sign.
  What checks/settings should I implement to detect incomplete characters for them to be prepended to the next buffer?</p>