protected bool getMenu(WindowActivityMonitorInfo monitorInfo, ref String panelClass)
{
AutomationElement windowElement = getWindowElement(monitorInfo.FgHwnd);
bool retVal = true;
if (windowElement != null)
{
if (isFileExplorer(windowElement))
{
Log.Debug("KILLROY isFileExploer is TRUE ");
if (Windows.IsMinimized(monitorInfo.FgHwnd))
{
retVal = false;
}
else
{
panelClass = ContextualMenuName;
}
}
else
{
Log.Debug("KILLROY isFileExploer is FALSE");
retVal = false;
}
}
else
{
Log.Debug("KILLROY windowElement is NULL");
}
Log.Debug("KILLROY return from getmenu : " + retVal);
return retVal;
}