static extern bool IsTextUnicode(byte[] buf, int len, ref IsTextUnicodeFlags opt);
enum IsTextUnicodeFlags:int