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
- WeakRefEnumerator.cs
- ReferencedCategoriesDocument.cs
- LinkDescriptor.cs
- TypeInfo.cs
- BamlTreeMap.cs
- FontUnitConverter.cs
- securitycriticaldata.cs
- Console.cs
- ImageFormat.cs
- CorrelationValidator.cs
- ImportCatalogPart.cs
- WindowClosedEventArgs.cs
- XmlSchemaCompilationSettings.cs
- DependencyObjectType.cs
- ToolstripProfessionalRenderer.cs
- TreeViewItemAutomationPeer.cs
- HandlerBase.cs
- PropertyConverter.cs
- UrlAuthFailedErrorFormatter.cs
- FileSystemEventArgs.cs
- SqlConnectionStringBuilder.cs
- SQLDecimalStorage.cs
- SimpleApplicationHost.cs
- TileBrush.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CompiledIdentityConstraint.cs
- WpfWebRequestHelper.cs
- DeferredRunTextReference.cs
- Configuration.cs
- FilePrompt.cs
- AssociatedControlConverter.cs
- DataTableExtensions.cs
- DesignerVerb.cs
- DupHandleConnectionReader.cs
- PackageFilter.cs
- PathFigureCollectionValueSerializer.cs
- XmlDictionaryWriter.cs
- CompositionTarget.cs
- TraceContext.cs
- Queue.cs
- SecurityRuntime.cs
- ServerValidateEventArgs.cs
- PropertyGridEditorPart.cs
- DelayDesigner.cs
- CompensatableTransactionScopeActivity.cs
- CompressedStack.cs
- DrawingState.cs
- MatrixTransform3D.cs
- Size.cs
- QuaternionRotation3D.cs
- METAHEADER.cs
- DataGridViewTopLeftHeaderCell.cs
- BitmapCache.cs
- SessionPageStatePersister.cs
- XmlSerializerFactory.cs
- NumberFormatInfo.cs
- Window.cs
- SimpleWebHandlerParser.cs
- __FastResourceComparer.cs
- RemotingAttributes.cs
- UnsafeNativeMethodsTablet.cs
- CheckBoxAutomationPeer.cs
- FontStretch.cs
- Polyline.cs
- PersistenceContext.cs
- TextWriter.cs
- QilLiteral.cs
- OdbcUtils.cs
- SplineKeyFrames.cs
- DecimalAnimationUsingKeyFrames.cs
- GrammarBuilder.cs
- ColorConverter.cs
- FixedTextPointer.cs
- QueryContinueDragEventArgs.cs
- XmlNullResolver.cs
- TransformProviderWrapper.cs
- PermissionRequestEvidence.cs
- AttributeData.cs
- MethodSet.cs
- Visual3D.cs
- DataTableTypeConverter.cs
- ToolStripButton.cs
- DynamicActivity.cs
- XamlTreeBuilderBamlRecordWriter.cs
- IsolatedStorageFile.cs
- ExpressionSelection.cs
- MenuItemBindingCollection.cs
- CircleHotSpot.cs
- ContractSearchPattern.cs
- NavigationProperty.cs
- FocusChangedEventArgs.cs
- OleDbTransaction.cs
- ConvertEvent.cs
- WindowsContainer.cs
- ToolStripMenuItemCodeDomSerializer.cs
- WindowsScrollBarBits.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SizeValueSerializer.cs
- ComPlusContractBehavior.cs
- WebAdminConfigurationHelper.cs