Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WarningException.cs
- SimpleApplicationHost.cs
- BindingExpression.cs
- InternalSafeNativeMethods.cs
- MbpInfo.cs
- RecordBuilder.cs
- SimpleParser.cs
- ResourceAttributes.cs
- EnterpriseServicesHelper.cs
- CroppedBitmap.cs
- AndAlso.cs
- EntityTypeEmitter.cs
- DrawingAttributes.cs
- NativeConfigurationLoader.cs
- FormParameter.cs
- ArraySubsetEnumerator.cs
- TextElement.cs
- TreeViewHitTestInfo.cs
- Constants.cs
- SoundPlayer.cs
- XmlIlVisitor.cs
- StrongNameIdentityPermission.cs
- XXXInfos.cs
- SkinBuilder.cs
- DataGridViewCellMouseEventArgs.cs
- ReceiveParametersContent.cs
- BufferedGraphics.cs
- DrawingImage.cs
- Point3DAnimationUsingKeyFrames.cs
- ExpandableObjectConverter.cs
- NullableLongMinMaxAggregationOperator.cs
- IgnoreFileBuildProvider.cs
- SessionStateSection.cs
- DataSourceUtil.cs
- ExceptionUtility.cs
- ImageFormatConverter.cs
- BitmapSource.cs
- CompressedStack.cs
- ScrollPattern.cs
- TreeViewImageIndexConverter.cs
- AlignmentXValidation.cs
- TextFormatterContext.cs
- ToolStripTextBox.cs
- FixedTextPointer.cs
- QilGenerator.cs
- ByteStreamGeometryContext.cs
- ZipIOExtraFieldZip64Element.cs
- MarkupWriter.cs
- ToolboxComponentsCreatingEventArgs.cs
- XmlILModule.cs
- MemberHolder.cs
- Timer.cs
- DialogResultConverter.cs
- MetadataException.cs
- TransactionOptions.cs
- WindowsAltTab.cs
- TextTreeUndoUnit.cs
- DeclaredTypeValidator.cs
- DbParameterCollectionHelper.cs
- PropertyGridCommands.cs
- ConsoleCancelEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- SqlCachedBuffer.cs
- HealthMonitoringSectionHelper.cs
- ResolveDuplex11AsyncResult.cs
- Codec.cs
- Processor.cs
- EntityDataSourceDesigner.cs
- VirtualDirectoryMappingCollection.cs
- BaseCollection.cs
- NamespaceEmitter.cs
- DllNotFoundException.cs
- FtpWebResponse.cs
- KeyManager.cs
- ExceptionHandlers.cs
- PersonalizationStateInfo.cs
- Publisher.cs
- PrintController.cs
- IPEndPoint.cs
- StrokeNodeEnumerator.cs
- XmlQuerySequence.cs
- ParseHttpDate.cs
- ControlParameter.cs
- HelloMessage11.cs
- ProfilePropertySettingsCollection.cs
- printdlgexmarshaler.cs
- TextBlockAutomationPeer.cs
- DBConcurrencyException.cs
- FormParameter.cs
- PropVariant.cs
- PackageRelationshipCollection.cs
- CodeTypeMember.cs
- ISCIIEncoding.cs
- oledbmetadatacolumnnames.cs
- Assembly.cs
- PersonalizationStateQuery.cs
- HashHelper.cs
- HtmlTable.cs
- DataRelationCollection.cs
- GC.cs