Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / WinEventQueueItem.cs / 1305600 / WinEventQueueItem.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM 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
- ToolStripItemGlyph.cs
- TreeViewHitTestInfo.cs
- HttpProfileGroupBase.cs
- ScriptingProfileServiceSection.cs
- ColorTransformHelper.cs
- SecurityTokenParameters.cs
- WindowInteropHelper.cs
- TcpHostedTransportConfiguration.cs
- MdiWindowListStrip.cs
- FileAuthorizationModule.cs
- ClaimTypeRequirement.cs
- ObjectListCommandsPage.cs
- ICspAsymmetricAlgorithm.cs
- AttachedPropertyMethodSelector.cs
- UniqueEventHelper.cs
- TextBoxDesigner.cs
- SqlCacheDependency.cs
- CoTaskMemSafeHandle.cs
- CheckableControlBaseAdapter.cs
- MembershipValidatePasswordEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- BoundingRectTracker.cs
- XmlSignificantWhitespace.cs
- TriggerAction.cs
- ComponentResourceManager.cs
- GridViewSelectEventArgs.cs
- DLinqColumnProvider.cs
- GeneralTransform3DGroup.cs
- CodeTypeParameter.cs
- TemplatePropertyEntry.cs
- _NestedSingleAsyncResult.cs
- HighContrastHelper.cs
- CodeAttributeDeclaration.cs
- PolyLineSegment.cs
- ControlBuilder.cs
- ConnectionManagementElement.cs
- PageThemeCodeDomTreeGenerator.cs
- ActivityCodeDomSerializationManager.cs
- BinaryConverter.cs
- bidPrivateBase.cs
- SuspendDesigner.cs
- HebrewCalendar.cs
- StorageAssociationTypeMapping.cs
- ConfigXmlCDataSection.cs
- VerticalAlignConverter.cs
- Hashtable.cs
- EventTrigger.cs
- ConfigUtil.cs
- ToolStripHighContrastRenderer.cs
- KnownBoxes.cs
- ColumnMap.cs
- AutomationPropertyInfo.cs
- ThreadExceptionEvent.cs
- DocumentPageHost.cs
- MouseActionValueSerializer.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartCatalogCloseVerb.cs
- PointAnimationBase.cs
- ScrollChrome.cs
- TextModifierScope.cs
- SQLByteStorage.cs
- PeerResolverBindingElement.cs
- UrlMappingsModule.cs
- XmlSerializationReader.cs
- TrustLevel.cs
- VideoDrawing.cs
- OleDbStruct.cs
- SimpleType.cs
- PngBitmapEncoder.cs
- FormViewPagerRow.cs
- Trustee.cs
- DateTimeOffset.cs
- EqualityComparer.cs
- HostVisual.cs
- NamespaceInfo.cs
- TypeToken.cs
- _RequestCacheProtocol.cs
- FixedSOMPageElement.cs
- DockPatternIdentifiers.cs
- RoleService.cs
- ThemeDirectoryCompiler.cs
- DoubleCollectionConverter.cs
- ToolStripManager.cs
- XmlCharType.cs
- AuthenticationModuleElementCollection.cs
- WriteableBitmap.cs
- CqlLexerHelpers.cs
- GenericArgumentsUpdater.cs
- PriorityRange.cs
- DeleteCardRequest.cs
- LoadedOrUnloadedOperation.cs
- GlyphsSerializer.cs
- SelectorItemAutomationPeer.cs
- ContainerControlDesigner.cs
- LeftCellWrapper.cs
- WorkflowViewStateService.cs
- ObjectListItemCollection.cs
- FontStyleConverter.cs
- HebrewCalendar.cs
- EntityModelSchemaGenerator.cs