Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationClient / MS / Internal / Automation / WinEventQueueItem.cs / 1 / WinEventQueueItem.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : [....] Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Threading; using System.Collections; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to handle WinEvents internal class WinEventQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal WinEventQueueItem(WinEventWrap winEventWrap, int state) { _winEventWrap = winEventWrap; _state = state; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields internal const int StartListening = 1; internal const int StopListening = 2; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal override void Process() { if (_state == StartListening) { _winEventWrap.StartListening(); } else { _winEventWrap.StopListening(); } } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private WinEventWrap _winEventWrap; private int _state; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BoundField.cs
- DelegateOutArgument.cs
- ConfigXmlSignificantWhitespace.cs
- ProvidersHelper.cs
- HotSpotCollection.cs
- Rect3DValueSerializer.cs
- CollectionsUtil.cs
- _LocalDataStoreMgr.cs
- DocumentGridPage.cs
- QilName.cs
- HyperLinkField.cs
- _LocalDataStore.cs
- Type.cs
- HttpModuleAction.cs
- RoutingSection.cs
- SimpleHandlerBuildProvider.cs
- NetworkCredential.cs
- EventDescriptorCollection.cs
- elementinformation.cs
- ServiceOperation.cs
- SessionEndedEventArgs.cs
- BuildResult.cs
- ToolBarPanel.cs
- WinOEToolBoxItem.cs
- Condition.cs
- TaskFormBase.cs
- _TransmitFileOverlappedAsyncResult.cs
- CurrentChangingEventManager.cs
- DesigntimeLicenseContextSerializer.cs
- DecodeHelper.cs
- UserNamePasswordValidator.cs
- RemoteWebConfigurationHostStream.cs
- DataGridViewImageCell.cs
- TextTreeRootNode.cs
- AssemblyAttributesGoHere.cs
- BamlTreeNode.cs
- TextMarkerSource.cs
- ItemCollection.cs
- OdbcCommand.cs
- ListParaClient.cs
- CodeMemberProperty.cs
- RoleManagerModule.cs
- ResourceExpression.cs
- SetterBase.cs
- ItemsChangedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- XmlAutoDetectWriter.cs
- PrintController.cs
- ProfileGroupSettingsCollection.cs
- util.cs
- DataServiceHostFactory.cs
- DoubleAnimation.cs
- PeerPresenceInfo.cs
- InheritanceContextChangedEventManager.cs
- RegexCapture.cs
- GeometryDrawing.cs
- DrawingVisualDrawingContext.cs
- InputMethodStateChangeEventArgs.cs
- ContractHandle.cs
- TableCellCollection.cs
- ISessionStateStore.cs
- SpotLight.cs
- Stopwatch.cs
- ObjectDataSourceEventArgs.cs
- ElementsClipboardData.cs
- Transform.cs
- StagingAreaInputItem.cs
- DataTablePropertyDescriptor.cs
- MemberCollection.cs
- MD5.cs
- PageTheme.cs
- Compilation.cs
- BitArray.cs
- DataObjectSettingDataEventArgs.cs
- TraceHwndHost.cs
- CustomAttributeFormatException.cs
- ParameterModifier.cs
- HostVisual.cs
- TypeContext.cs
- StringPropertyBuilder.cs
- FormatException.cs
- XmlObjectSerializerContext.cs
- FontStyleConverter.cs
- XmlAnyElementAttribute.cs
- StateItem.cs
- DiscardableAttribute.cs
- HttpFileCollectionWrapper.cs
- ValueQuery.cs
- Misc.cs
- TreeIterator.cs
- WindowsTokenRoleProvider.cs
- SqlPersonalizationProvider.cs
- AddToCollection.cs
- SchemaComplexType.cs
- DataControlFieldHeaderCell.cs
- SessionStateSection.cs
- GlyphRunDrawing.cs
- EntityWithKeyStrategy.cs
- XmlAtomErrorReader.cs
- PrtTicket_Public_Simple.cs