AniDBmini.MPCProcWatcher.MPCProcWatcher C# (CSharp) Method

MPCProcWatcher() public method

public MPCProcWatcher ( ) : System
return System
        public MPCProcWatcher()
        {
            m_mpcWatcher = new ManagementEventWatcher();
            m_mpcWatcher.Query = new WqlEventQuery("__InstanceOperationEvent", TimeSpan.FromSeconds(1),
                @"TargetInstance ISA 'Win32_Process' AND ( TargetInstance.Name = 'mpc-hc.exe' OR TargetInstance.Name = 'mpc-hc64.exe')");
            m_mpcWatcher.Scope = m_wScope;

            m_mpcWatcher.EventArrived += new EventArrivedEventHandler(m_mpcWatcher_EventArrived);
            m_mpcWatcher.Start();
        }