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
- DbConnectionPoolGroupProviderInfo.cs
- FileLogRecord.cs
- _LazyAsyncResult.cs
- XamlPointCollectionSerializer.cs
- CalendarDateRangeChangingEventArgs.cs
- PublisherIdentityPermission.cs
- PrintDocument.cs
- PageCatalogPart.cs
- ErrorFormatter.cs
- connectionpool.cs
- ExtensionFile.cs
- Track.cs
- HiddenField.cs
- TreeChangeInfo.cs
- UnsafeNativeMethods.cs
- XmlSchemaComplexContentRestriction.cs
- TemplateControlBuildProvider.cs
- LabelAutomationPeer.cs
- AmbientLight.cs
- Nodes.cs
- Simplifier.cs
- GridViewEditEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- URL.cs
- DiffuseMaterial.cs
- MatrixStack.cs
- QueryableFilterUserControl.cs
- ProviderException.cs
- Knowncolors.cs
- ClientSettingsProvider.cs
- CheckBoxField.cs
- OracleCommandBuilder.cs
- SocketException.cs
- ObjectNotFoundException.cs
- LogoValidationException.cs
- SplineQuaternionKeyFrame.cs
- ConnectionsZone.cs
- CharKeyFrameCollection.cs
- securitycriticaldataClass.cs
- CollectionViewSource.cs
- InputMethodStateTypeInfo.cs
- DelegateHelpers.cs
- DesignTimeTemplateParser.cs
- XmlILConstructAnalyzer.cs
- FacetEnabledSchemaElement.cs
- DataGridViewCellPaintingEventArgs.cs
- WebRequest.cs
- COMException.cs
- WindowsFormsSectionHandler.cs
- TextEditor.cs
- WorkItem.cs
- ConfigurationLocation.cs
- EdmItemError.cs
- safelinkcollection.cs
- CompressionTracing.cs
- SQLGuidStorage.cs
- EditBehavior.cs
- WindowProviderWrapper.cs
- ModuleConfigurationInfo.cs
- Ops.cs
- RtfToXamlLexer.cs
- FormViewRow.cs
- TextTreeUndoUnit.cs
- Binding.cs
- EdmItemCollection.cs
- ResXResourceReader.cs
- DataSourceXmlElementAttribute.cs
- MarshalDirectiveException.cs
- FilterEventArgs.cs
- UnsafeNativeMethodsTablet.cs
- IfAction.cs
- CngAlgorithmGroup.cs
- Dictionary.cs
- ToolStripDropDownDesigner.cs
- DesignerAdapterUtil.cs
- CloseSequenceResponse.cs
- ErrorFormatter.cs
- XsdBuildProvider.cs
- ListBoxItemWrapperAutomationPeer.cs
- ClosureBinding.cs
- Process.cs
- DrawingContext.cs
- NegationPusher.cs
- Tablet.cs
- ProgressBarBrushConverter.cs
- FixedPageProcessor.cs
- StringValidator.cs
- XmlSchemaComplexType.cs
- TextEncodedRawTextWriter.cs
- ProcessProtocolHandler.cs
- DataSourceCache.cs
- MediaPlayerState.cs
- PersonalizationStateQuery.cs
- RootDesignerSerializerAttribute.cs
- BinaryParser.cs
- DoubleCollectionConverter.cs
- CodeTypeReference.cs
- WebPartConnectionsEventArgs.cs
- UpdateTracker.cs
- CodeEventReferenceExpression.cs