public static string GetEffectNameManaged(int device, int index) { var pName = DirectInputWrapper.GetEffectName(device, index); return(Marshal.PtrToStringUni(pName)); }