Ответ 1
Это иногда называют FOURCC. Там есть Windows API, который может конвертировать из строки в FOURCC под названием mmioStringToFOURCC, а здесь некоторый код С#, чтобы сделать то же самое:
public static int ChunkIdentifierToInt32(string s)
{
if (s.Length != 4) throw new ArgumentException("Must be a four character string");
var bytes = Encoding.UTF8.GetBytes(s);
if (bytes.Length != 4) throw new ArgumentException("Must encode to exactly four bytes");
return BitConverter.ToInt32(bytes, 0);
}