public static string GetName(this SoundControlElementIface iface) { IntPtr ptr = SoundNativeMethods.SoundControlElementIfaceName(iface); return(Marshal.PtrToStringAnsi(ptr)); }