Esempio n. 1
0
 protected override void OnStart()
 {
     if (_window == null)
     {
         _window = HookWindow.IncrementRefCount();
     }
 }
Esempio n. 2
0
        protected override void OnStop()
        {
            if (_window != null)
            {
                HookWindow.DecrementRefCount();
            }

            _window = null;
        }
Esempio n. 3
0
        public static HookWindow IncrementRefCount()
        {
            lock (StaticSyncRoot)
            {
                if (_instance == null)
                {
                    _instance = new HookWindow();
                }

                ++_references;
            }

            return(_instance);
        }
Esempio n. 4
0
 public HookNativeWindow(HookWindow owner)
 {
     _owner = owner;
 }