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
- Int16Storage.cs
- XslAstAnalyzer.cs
- UIPropertyMetadata.cs
- SharedConnectionWorkflowTransactionService.cs
- CustomError.cs
- CustomExpressionEventArgs.cs
- CopyOnWriteList.cs
- FieldAccessException.cs
- CharacterBufferReference.cs
- SingleResultAttribute.cs
- SpeechSeg.cs
- Authorization.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- RegularExpressionValidator.cs
- CaseInsensitiveOrdinalStringComparer.cs
- PeerToPeerException.cs
- WindowsStreamSecurityBindingElement.cs
- TextSimpleMarkerProperties.cs
- MemoryMappedViewStream.cs
- StrokeRenderer.cs
- WebPageTraceListener.cs
- BridgeDataReader.cs
- UserMapPath.cs
- DataGridViewHeaderCell.cs
- _NetworkingPerfCounters.cs
- Utility.cs
- UpnEndpointIdentity.cs
- DbConnectionPoolGroupProviderInfo.cs
- XPathChildIterator.cs
- ToolStripDropDownClosedEventArgs.cs
- LogicalExpr.cs
- PageAdapter.cs
- TextRunProperties.cs
- Error.cs
- XPathException.cs
- HostExecutionContextManager.cs
- Span.cs
- OrderedDictionary.cs
- VBIdentifierDesigner.xaml.cs
- SymbolTable.cs
- TypeValidationEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- ProxyManager.cs
- PixelShader.cs
- ListViewCommandEventArgs.cs
- WmlSelectionListAdapter.cs
- BooleanToVisibilityConverter.cs
- EventTrigger.cs
- MsmqReceiveHelper.cs
- DataGridViewColumnCollection.cs
- DirectoryRedirect.cs
- BindingSourceDesigner.cs
- HtmlInputImage.cs
- TextServicesManager.cs
- HtmlInputFile.cs
- RootNamespaceAttribute.cs
- InputScope.cs
- CorrelationKeyCalculator.cs
- SqlRewriteScalarSubqueries.cs
- AdornerLayer.cs
- ping.cs
- ToolboxItemImageConverter.cs
- Schema.cs
- SpellerError.cs
- ContextDataSourceView.cs
- safelinkcollection.cs
- FrameworkElementFactory.cs
- QueryReaderSettings.cs
- ClientCredentials.cs
- EdmTypeAttribute.cs
- RolePrincipal.cs
- DataGridRowsPresenter.cs
- ProfilePropertySettingsCollection.cs
- URLMembershipCondition.cs
- WsatConfiguration.cs
- ListSurrogate.cs
- SocketInformation.cs
- UiaCoreApi.cs
- TraceContextRecord.cs
- ExpressionEditorAttribute.cs
- SafeNativeMethods.cs
- InputMethodStateChangeEventArgs.cs
- CryptoApi.cs
- AsyncResult.cs
- IndentTextWriter.cs
- StylusButton.cs
- WebPartConnection.cs
- XmlSchemaSubstitutionGroup.cs
- GPRECT.cs
- _PooledStream.cs
- UidPropertyAttribute.cs
- BooleanExpr.cs
- VisualStyleElement.cs
- XPathNodeInfoAtom.cs
- Icon.cs
- ClassGenerator.cs
- GeneratedContractType.cs
- DbParameterCollection.cs
- HttpHandlersInstallComponent.cs
- MsmqHostedTransportConfiguration.cs