internal static void SavePersistent(string filename) { UIntPtr size; byte[] name = CreateUTF8String(filename, out size); IntPtr err = Interop.NT_SavePersistent(name); if (err != IntPtr.Zero) { throw new PersistentException("Save persistent failed"); } }