Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EventProviderBase.cs
- TreeWalker.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- FlowDocument.cs
- PropertyDescriptorComparer.cs
- GenericAuthenticationEventArgs.cs
- XmlParserContext.cs
- FixedSOMContainer.cs
- AnyAllSearchOperator.cs
- TagMapInfo.cs
- ChtmlCalendarAdapter.cs
- StagingAreaInputItem.cs
- XmlWrappingWriter.cs
- InvokeDelegate.cs
- LineServicesCallbacks.cs
- ResourcesChangeInfo.cs
- ConnectionManagementSection.cs
- TimeEnumHelper.cs
- RewritingProcessor.cs
- ScriptReference.cs
- CaretElement.cs
- DataGridCellInfo.cs
- CodeArrayCreateExpression.cs
- BitmapPalette.cs
- InkCanvasSelection.cs
- Attributes.cs
- GiveFeedbackEvent.cs
- CacheDict.cs
- WindowsRichEdit.cs
- PolyQuadraticBezierSegment.cs
- OleDbCommandBuilder.cs
- SynchronizationLockException.cs
- ExpanderAutomationPeer.cs
- SortKey.cs
- OutputChannelBinder.cs
- HttpCookieCollection.cs
- RepeatBehavior.cs
- NumberAction.cs
- ByteStreamBufferedMessageData.cs
- BindingExpressionUncommonField.cs
- XmlSortKeyAccumulator.cs
- PrintPreviewGraphics.cs
- HtmlAnchor.cs
- RubberbandSelector.cs
- IRCollection.cs
- XmlArrayItemAttributes.cs
- KeyValuePair.cs
- ListManagerBindingsCollection.cs
- MSAAWinEventWrap.cs
- StrokeDescriptor.cs
- Glyph.cs
- RuntimeArgumentHandle.cs
- TypeValidationEventArgs.cs
- HostSecurityManager.cs
- ConfigurationSectionCollection.cs
- SimpleHandlerFactory.cs
- CheckPair.cs
- CheckBoxBaseAdapter.cs
- SiteOfOriginPart.cs
- TabControlEvent.cs
- ShimAsPublicXamlType.cs
- LateBoundBitmapDecoder.cs
- ApplicationContext.cs
- LayoutUtils.cs
- Int64Animation.cs
- SystemWebExtensionsSectionGroup.cs
- InputProcessorProfilesLoader.cs
- HttpListenerPrefixCollection.cs
- DynamicPropertyReader.cs
- MenuItemCollection.cs
- PerformanceCountersBase.cs
- SqlConnectionManager.cs
- TextOnlyOutput.cs
- EntityDataSourceColumn.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- PhysicalAddress.cs
- LineGeometry.cs
- StructuredType.cs
- TextFormatter.cs
- PointCollectionConverter.cs
- SimpleTextLine.cs
- ErrorFormatterPage.cs
- Column.cs
- DataFormats.cs
- SynchronizationLockException.cs
- Baml2006KnownTypes.cs
- EventData.cs
- DatagridviewDisplayedBandsData.cs
- DataGridViewColumnEventArgs.cs
- RepeatInfo.cs
- dbenumerator.cs
- FacetDescriptionElement.cs
- InstanceDataCollection.cs
- CustomWebEventKey.cs
- WsdlBuildProvider.cs
- XmlKeywords.cs
- TypeContext.cs
- FactoryGenerator.cs
- PathSegment.cs
- XmlBinaryReader.cs