IsTextUnicode

[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsTextUnicode(
   IntPtr lpBuffer,
   int cb,
   ref int lpi
);

Microsoft documentation: Link

Last updated