internal void StopReceivingDeviceNotifications(IntPtr deviceNotificationHandle) { try { FKDeviceManagement.UnregisterDeviceNotification(deviceNotificationHandle); } catch (Exception) { throw; } }
public MainForm() { InitializeComponent(); // 核心对象初始化 m_Native = new FKNative(); m_DevManage = new FKDeviceManagement(); m_PrevTrace = new FKFilterTrace(); // 其他控件初始化 if (!FKWindowsSecurity.IsAdmin()) { this.Text += " (非管理员)"; FKWindowsSecurity.AddShieldToButton(Reinstall_Button); FKWindowsSecurity.AddShieldToButton(Uninstall_Button); } else { this.Text += " (管理员)"; } cbMaxTraces.SelectedIndex = 0; }