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
- OrthographicCamera.cs
- rsa.cs
- BooleanConverter.cs
- AuthenticationServiceManager.cs
- login.cs
- DbMetaDataCollectionNames.cs
- SQLInt64.cs
- MarshalDirectiveException.cs
- ProfilePropertySettingsCollection.cs
- LocalizedNameDescriptionPair.cs
- SharedPersonalizationStateInfo.cs
- HMACSHA256.cs
- AuthenticationServiceManager.cs
- DataGridViewCheckBoxCell.cs
- UmAlQuraCalendar.cs
- SmtpException.cs
- TypeConstant.cs
- FontResourceCache.cs
- CodeDelegateInvokeExpression.cs
- PropertyTabAttribute.cs
- While.cs
- Image.cs
- UpdateProgress.cs
- CompositeDataBoundControl.cs
- ReadOnlyObservableCollection.cs
- DBSqlParserColumnCollection.cs
- FormViewPageEventArgs.cs
- ConfigXmlCDataSection.cs
- UnsafeNativeMethods.cs
- TaskFormBase.cs
- OptimizedTemplateContentHelper.cs
- CompModSwitches.cs
- Base64Stream.cs
- Point3D.cs
- HTMLTagNameToTypeMapper.cs
- SecurityTokenTypes.cs
- ToolStripSeparatorRenderEventArgs.cs
- RedirectionProxy.cs
- TreeNodeBindingCollection.cs
- PointAnimationClockResource.cs
- OdbcConnectionHandle.cs
- WindowsSolidBrush.cs
- XmlEncodedRawTextWriter.cs
- AssemblyAttributesGoHere.cs
- SatelliteContractVersionAttribute.cs
- OptimalTextSource.cs
- BinaryMethodMessage.cs
- SchemaRegistration.cs
- UIElementPropertyUndoUnit.cs
- WindowsFormsHelpers.cs
- SettingsPropertyIsReadOnlyException.cs
- DesignerPerfEventProvider.cs
- FilePrompt.cs
- ScriptingSectionGroup.cs
- CmsInterop.cs
- CodeNamespace.cs
- AttributeInfo.cs
- XPathLexer.cs
- SqlDataSourceCache.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- PermissionToken.cs
- WebBrowsableAttribute.cs
- SQLGuid.cs
- XmlMapping.cs
- TextRunTypographyProperties.cs
- NumberSubstitution.cs
- CustomErrorCollection.cs
- DescendantOverDescendantQuery.cs
- XmlIlVisitor.cs
- TextMetrics.cs
- SiteMapHierarchicalDataSourceView.cs
- DetailsViewPagerRow.cs
- RecordsAffectedEventArgs.cs
- HashHelper.cs
- ElapsedEventArgs.cs
- AdPostCacheSubstitution.cs
- FaultException.cs
- CommentEmitter.cs
- BitmapCacheBrush.cs
- Image.cs
- XPathMessageFilterElementCollection.cs
- ObjectQueryState.cs
- Visitor.cs
- OLEDB_Util.cs
- UriParserTemplates.cs
- RoleService.cs
- DbProviderFactory.cs
- TextBoxDesigner.cs
- OdbcReferenceCollection.cs
- Expression.DebuggerProxy.cs
- HTMLTagNameToTypeMapper.cs
- ExtenderProvidedPropertyAttribute.cs
- Logging.cs
- AuthenticationModulesSection.cs
- ConstraintConverter.cs
- Control.cs
- InvalidOperationException.cs
- SafeBitVector32.cs
- XmlAttributeHolder.cs
- JsonFormatGeneratorStatics.cs