public static FileData OpenFile(string path) { //Set Unlock Code TUnlock3LE unlockCode = new TUnlock3LE(); unlockCode.int1 = 0; unlockCode.int2 = 0; unlockCode.int3 = 0; unlockCode.int4 = 0; // Create the result FileData fileData = new FileData(); try { // Init DLL if (_Eeg3_Initialisation() == 0) { // Unlock DLL if (_Eeg3_Unlock(unlockCode) == 0) { // Open the File fileData = Eeg3_OpenFile(path); } } } catch (Exception ex) { LogError.Write(ex); } finally { // Close File _Eeg3_CloseFile(); // Stop Using DLL _Eeg3_Termination(); } return(fileData); }
public static FileData OpenFile(string path) { //Set Unlock Code TUnlock3LE unlockCode = new TUnlock3LE(); unlockCode.int1 = 0; unlockCode.int2 = 0; unlockCode.int3 = 0; unlockCode.int4 = 0; // Create the result FileData fileData = new FileData(); try { // Init DLL if (_Eeg3_Initialisation() == 0) { // Unlock DLL if (_Eeg3_Unlock(unlockCode) == 0) { // Open the File fileData = Eeg3_OpenFile(path); } } } catch (Exception ex) { LogError.Write(ex); } finally { // Close File _Eeg3_CloseFile(); // Stop Using DLL _Eeg3_Termination(); } return fileData; }
public static extern int _Eeg3_Unlock(TUnlock3LE Unlock3LE);