Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / IO / Ports / SerialPinChanges.cs / 1305376 / SerialPinChanges.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialPinChange ** ** Purpose: Used to describe which pin has changed on a PinChanged event. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialPinChange { CtsChanged = NativeMethods.EV_CTS, DsrChanged = NativeMethods.EV_DSR, CDChanged = NativeMethods.EV_RLSD, Ring = NativeMethods.EV_RING, Break = NativeMethods.EV_BREAK, } public class SerialPinChangedEventArgs : EventArgs { private SerialPinChange pinChanged; internal SerialPinChangedEventArgs (SerialPinChange eventCode) { pinChanged = eventCode; } public SerialPinChange EventType { get { return pinChanged; } } } public delegate void SerialPinChangedEventHandler(object sender, SerialPinChangedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialPinChange ** ** Purpose: Used to describe which pin has changed on a PinChanged event. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialPinChange { CtsChanged = NativeMethods.EV_CTS, DsrChanged = NativeMethods.EV_DSR, CDChanged = NativeMethods.EV_RLSD, Ring = NativeMethods.EV_RING, Break = NativeMethods.EV_BREAK, } public class SerialPinChangedEventArgs : EventArgs { private SerialPinChange pinChanged; internal SerialPinChangedEventArgs (SerialPinChange eventCode) { pinChanged = eventCode; } public SerialPinChange EventType { get { return pinChanged; } } } public delegate void SerialPinChangedEventHandler(object sender, SerialPinChangedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ViewStateModeByIdAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Style.cs
- PropertySet.cs
- PrtCap_Public_Simple.cs
- DeferredTextReference.cs
- SafeRegistryKey.cs
- DateTimeConstantAttribute.cs
- CollectionConverter.cs
- MyContact.cs
- XmlSerializerNamespaces.cs
- XslCompiledTransform.cs
- Utils.cs
- HandlerFactoryWrapper.cs
- InstanceDataCollectionCollection.cs
- StringAttributeCollection.cs
- RemotingException.cs
- HttpDictionary.cs
- MediaTimeline.cs
- MenuItem.cs
- AuthenticateEventArgs.cs
- LinkAreaEditor.cs
- SqlConnection.cs
- DefaultParameterValueAttribute.cs
- EnumConverter.cs
- XmlRootAttribute.cs
- SqlCommandSet.cs
- JoinGraph.cs
- BooleanFunctions.cs
- DesignerToolStripControlHost.cs
- XamlTreeBuilder.cs
- ZipIORawDataFileBlock.cs
- SchemaNames.cs
- CustomWebEventKey.cs
- ScrollData.cs
- ContextMenuStrip.cs
- ExternalException.cs
- FileDialogCustomPlace.cs
- StylusOverProperty.cs
- ActionItem.cs
- Privilege.cs
- KeyMatchBuilder.cs
- Matrix.cs
- HttpWrapper.cs
- AutoResetEvent.cs
- SoapEnumAttribute.cs
- HttpProfileBase.cs
- Inflater.cs
- AffineTransform3D.cs
- StickyNoteContentControl.cs
- RSAPKCS1SignatureFormatter.cs
- InkCollectionBehavior.cs
- Matrix.cs
- TempFiles.cs
- SqlCachedBuffer.cs
- ServiceOperationViewControl.cs
- FormViewActionList.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- PathFigure.cs
- ObservableDictionary.cs
- OdbcHandle.cs
- _NegoState.cs
- WebEvents.cs
- IISUnsafeMethods.cs
- IsolationInterop.cs
- JsonReader.cs
- versioninfo.cs
- WinFormsUtils.cs
- TextComposition.cs
- ProxyWebPart.cs
- ActivityExecutorOperation.cs
- Utils.cs
- FactoryRecord.cs
- KnowledgeBase.cs
- FontCollection.cs
- UserControl.cs
- EntityTemplateUserControl.cs
- UIElement.cs
- ThreadAbortException.cs
- SystemIcmpV4Statistics.cs
- VariantWrapper.cs
- SoapExtensionReflector.cs
- BuildProviderInstallComponent.cs
- ValidationError.cs
- ThreadNeutralSemaphore.cs
- VirtualPathUtility.cs
- CheckBoxField.cs
- ObjectDataSourceView.cs
- PropertyFilter.cs
- PagedDataSource.cs
- StaticExtensionConverter.cs
- ObjectConverter.cs
- FormsAuthenticationCredentials.cs
- FixedTextBuilder.cs
- SourceFilter.cs
- LogWriteRestartAreaAsyncResult.cs
- IIS7UserPrincipal.cs
- ModelItemCollection.cs
- DropDownHolder.cs
- IFormattable.cs