Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / WinFormsIntegration / MS / Win32 / DCSafeHandle.cs / 1 / DCSafeHandle.cs
using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System; namespace MS.Win32 { internal sealed class DCSafeHandle : SafeHandleZeroOrMinusOneIsInvalid { private DCSafeHandle() : base(true) { } override protected bool ReleaseHandle() { return UnsafeNativeMethods.DeleteDC(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System; namespace MS.Win32 { internal sealed class DCSafeHandle : SafeHandleZeroOrMinusOneIsInvalid { private DCSafeHandle() : base(true) { } override protected bool ReleaseHandle() { return UnsafeNativeMethods.DeleteDC(handle); } } } // 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
- EncoderBestFitFallback.cs
- SystemKeyConverter.cs
- HttpResponse.cs
- WebServiceResponse.cs
- ReadOnlyAttribute.cs
- CaseInsensitiveComparer.cs
- ByValueEqualityComparer.cs
- DateTimeOffset.cs
- WebServiceTypeData.cs
- WindowsAuthenticationEventArgs.cs
- WriteableOnDemandStream.cs
- JsonDeserializer.cs
- EncoderReplacementFallback.cs
- XmlArrayItemAttributes.cs
- SafeLocalMemHandle.cs
- ObjectDataSourceStatusEventArgs.cs
- TrackingSection.cs
- RSAOAEPKeyExchangeFormatter.cs
- Int32CollectionConverter.cs
- SQLBytesStorage.cs
- DocumentSequenceHighlightLayer.cs
- AuthenticatingEventArgs.cs
- StreamGeometry.cs
- xml.cs
- StringUtil.cs
- MULTI_QI.cs
- Vector.cs
- TrackingMemoryStream.cs
- BooleanKeyFrameCollection.cs
- TypographyProperties.cs
- IDReferencePropertyAttribute.cs
- XmlSchemaAnnotation.cs
- DetailsViewPageEventArgs.cs
- DropTarget.cs
- TypeResolver.cs
- PolicyStatement.cs
- VisualBasicDesignerHelper.cs
- DBParameter.cs
- TreeViewCancelEvent.cs
- SmiMetaData.cs
- TreeNode.cs
- X509UI.cs
- TextBoxBase.cs
- DataTransferEventArgs.cs
- Clock.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SchemaMapping.cs
- OracleDataReader.cs
- SocketManager.cs
- ColorAnimation.cs
- _OSSOCK.cs
- CustomAttributeSerializer.cs
- DbSourceParameterCollection.cs
- MarkupObject.cs
- LogicalTreeHelper.cs
- XmlCharCheckingWriter.cs
- SqlDataAdapter.cs
- HtmlForm.cs
- SymDocumentType.cs
- TemplateBindingExtension.cs
- ObjectItemAttributeAssemblyLoader.cs
- HttpConfigurationContext.cs
- CalculatedColumn.cs
- TdsParameterSetter.cs
- EnumValAlphaComparer.cs
- MemberDescriptor.cs
- BitmapCache.cs
- RelationshipNavigation.cs
- EpmContentDeSerializer.cs
- EntityModelSchemaGenerator.cs
- ControlAdapter.cs
- EntityParameter.cs
- SByteStorage.cs
- ClientOperationFormatterProvider.cs
- AdditionalEntityFunctions.cs
- DefaultValueConverter.cs
- EffectiveValueEntry.cs
- Exceptions.cs
- BasicKeyConstraint.cs
- MergeFilterQuery.cs
- TextEditorCharacters.cs
- Simplifier.cs
- SectionRecord.cs
- WebSysDescriptionAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- HtmlInputFile.cs
- DesigntimeLicenseContext.cs
- ThrowHelper.cs
- ButtonPopupAdapter.cs
- BlockUIContainer.cs
- SqlIdentifier.cs
- ResolveDuplexAsyncResult.cs
- TextContainerChangedEventArgs.cs
- WindowsListViewGroup.cs
- KeyGestureValueSerializer.cs
- HtmlInputPassword.cs
- SafeNativeMethods.cs
- ScriptDescriptor.cs
- TextBoxLine.cs
- InputBinder.cs