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
- Trace.cs
- ObjectDisposedException.cs
- Column.cs
- LinkConverter.cs
- ExpressionHelper.cs
- ComMethodElement.cs
- COM2ExtendedTypeConverter.cs
- ParallelEnumerable.cs
- SharedStatics.cs
- ResourceIDHelper.cs
- SimpleLine.cs
- ImplicitInputBrush.cs
- DataSourceCacheDurationConverter.cs
- HitTestDrawingContextWalker.cs
- QilStrConcat.cs
- ListItem.cs
- PointAnimationUsingPath.cs
- DiagnosticsConfiguration.cs
- DateTimeFormatInfo.cs
- Canvas.cs
- FormattedTextSymbols.cs
- WorkflowElementDialog.cs
- ModuleBuilderData.cs
- SortDescription.cs
- recordstatescratchpad.cs
- XPathNodeInfoAtom.cs
- QueryParameter.cs
- InkCanvas.cs
- ServerIdentity.cs
- RelationshipDetailsCollection.cs
- COM2ExtendedBrowsingHandler.cs
- MonikerBuilder.cs
- WebServiceTypeData.cs
- TextSelectionProcessor.cs
- RelatedEnd.cs
- SessionPageStateSection.cs
- Container.cs
- BreakRecordTable.cs
- OraclePermissionAttribute.cs
- PolicyStatement.cs
- GC.cs
- CheckBox.cs
- TextParentUndoUnit.cs
- HtmlObjectListAdapter.cs
- ComponentConverter.cs
- TypefaceMetricsCache.cs
- DrawingContextWalker.cs
- UdpReplyToBehavior.cs
- SerTrace.cs
- MonthChangedEventArgs.cs
- ArgumentOutOfRangeException.cs
- SQLInt64Storage.cs
- EditorPart.cs
- GroupItem.cs
- SmtpNegotiateAuthenticationModule.cs
- ObjectRef.cs
- MenuEventArgs.cs
- OdbcConnectionStringbuilder.cs
- CodeThrowExceptionStatement.cs
- MonthChangedEventArgs.cs
- AdministrationHelpers.cs
- SvcMapFileSerializer.cs
- ReadOnlyDataSourceView.cs
- Double.cs
- NumericUpDownAccelerationCollection.cs
- FontStretches.cs
- GenerateScriptTypeAttribute.cs
- Guid.cs
- PathData.cs
- FontInfo.cs
- ArrangedElementCollection.cs
- SafeProcessHandle.cs
- TextDpi.cs
- TouchesOverProperty.cs
- ComponentEditorPage.cs
- TextHintingModeValidation.cs
- WinHttpWebProxyFinder.cs
- CompModSwitches.cs
- RuntimeEnvironment.cs
- RtfFormatStack.cs
- Propagator.Evaluator.cs
- MulticastOption.cs
- EditorZone.cs
- LinqToSqlWrapper.cs
- SQLDouble.cs
- SoapSchemaMember.cs
- ReliableSessionElement.cs
- XmlUtil.cs
- AttributeXamlType.cs
- COM2PictureConverter.cs
- BackStopAuthenticationModule.cs
- TemplateParser.cs
- HintTextConverter.cs
- PathGradientBrush.cs
- SeekableReadStream.cs
- RadioButtonStandardAdapter.cs
- Rule.cs
- OrderPreservingPipeliningMergeHelper.cs
- XmlTextEncoder.cs
- DTCTransactionManager.cs