Пример #1
0
 private void CheckHiddenState()
 {
     //Checks the state of client. Does not change anything.
     ClientProcess.Refresh();
     if (!ClientProcess.MainWindowHandle.Equals(IntPtr.Zero))
     {
         //Means the client is not hidden, save the window handle and proceed.
         HiddenState = false;
         return;
     }
     else
     {
         //TODO : Find a method to restore hidden window without a window handle.
         HiddenState = true;
     }
 }