public static File7 Open(string fullPath, string mode) { int handle = DllImportCaller.lib.fopen7(fullPath, mode); if (handle == 0) { throw new Exception(DllImportCaller.LastError().ToString()); } return new File7(handle); }