[DllImport("PowerCtrl.dll", CharSet = CharSet.Unicode)] private static extern int OpenPower(); [DllImport("PowerCtrl.dll", CharSet = CharSet.Unicode)] private static extern void ClosePower(); [DllImport("termb.dll", CharSet = CharSet.Unicode)] private static extern int InitComm(int Port); [DllImport("termb.dll", CharSet = CharSet.Unicode)] private static extern int CloseComm(); [DllImport("termb.dll", CharSet = CharSet.Unicode)] private static extern int Authenticate(); [DllImport("termb.dll", CharSet = CharSet.Unicode)] private static extern int Read_Content(int Active); [DllImport("HWControl.dll", CharSet = CharSet.Unicode)] private static extern bool SamPower(bool value); [DllImport("HWControl.dll", CharSet = CharSet.Unicode)] private static extern bool GetSamPower(); [DllImport("HWControl.dll", CharSet = CharSet.Unicode)] private static extern bool ScanPower(bool value); [DllImport("HWControl.dll", CharSet = CharSet.Unicode)]