Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / 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 : 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. //---------------------------------------------------------------------------- // //// 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
- XPathDocument.cs
- Math.cs
- DesignerTransactionCloseEvent.cs
- WindowsSspiNegotiation.cs
- FixedPageProcessor.cs
- ExecutionContext.cs
- MailWebEventProvider.cs
- Setter.cs
- WindowsListViewGroupHelper.cs
- UserControlBuildProvider.cs
- DBConnectionString.cs
- MailMessageEventArgs.cs
- WmlLabelAdapter.cs
- WindowsSlider.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Geometry.cs
- CultureInfoConverter.cs
- UnionQueryOperator.cs
- RuntimeHandles.cs
- ConfigurationLocationCollection.cs
- StatusBarItemAutomationPeer.cs
- SelectionGlyph.cs
- ValidateNames.cs
- SmiRecordBuffer.cs
- Pkcs7Recipient.cs
- UnsafeNativeMethods.cs
- WebPartsPersonalization.cs
- StatusBarAutomationPeer.cs
- RelationshipDetailsCollection.cs
- x509utils.cs
- jithelpers.cs
- PathSegmentCollection.cs
- ConfigXmlReader.cs
- InvokeMethodActivity.cs
- ComponentChangedEvent.cs
- RunInstallerAttribute.cs
- TcpClientSocketManager.cs
- TimeSpanValidator.cs
- InputScopeNameConverter.cs
- LinearKeyFrames.cs
- Bitmap.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- WinInetCache.cs
- Schema.cs
- SafeLibraryHandle.cs
- LowerCaseStringConverter.cs
- CompoundFileStorageReference.cs
- BuildResultCache.cs
- UrlEncodedParameterWriter.cs
- SHA512Managed.cs
- Pkcs7Recipient.cs
- ContentElement.cs
- TextSchema.cs
- Selection.cs
- WindowsAltTab.cs
- MarshalDirectiveException.cs
- messageonlyhwndwrapper.cs
- GB18030Encoding.cs
- Control.cs
- ParallelDesigner.cs
- sqlnorm.cs
- ThreadStaticAttribute.cs
- Setter.cs
- ConstraintEnumerator.cs
- SAPICategories.cs
- SessionPageStatePersister.cs
- XamlPointCollectionSerializer.cs
- BoolExpression.cs
- xdrvalidator.cs
- ReceiveSecurityHeaderEntry.cs
- StateInitializationDesigner.cs
- ISO2022Encoding.cs
- RegexCapture.cs
- PingReply.cs
- SystemWebCachingSectionGroup.cs
- TagPrefixInfo.cs
- BidPrivateBase.cs
- ApplicationSettingsBase.cs
- Marshal.cs
- RtfToken.cs
- CustomCredentialPolicy.cs
- TiffBitmapDecoder.cs
- GPRECTF.cs
- DecoderExceptionFallback.cs
- BaseValidatorDesigner.cs
- MatrixAnimationUsingKeyFrames.cs
- TaskFormBase.cs
- HttpPostedFile.cs
- Random.cs
- ManagedFilter.cs
- ImageInfo.cs
- GridLength.cs
- RangeContentEnumerator.cs
- CounterCreationDataConverter.cs
- RNGCryptoServiceProvider.cs
- SamlAction.cs
- FilterQuery.cs
- CodeGenerator.cs
- TrackBar.cs
- EventProperty.cs