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
- PreviousTrackingServiceAttribute.cs
- SqlUdtInfo.cs
- AnnotationObservableCollection.cs
- LinkConverter.cs
- IsolatedStorageFilePermission.cs
- Deserializer.cs
- SiteMapNodeCollection.cs
- _StreamFramer.cs
- ConfigurationPropertyAttribute.cs
- EventLogPermissionAttribute.cs
- HashAlgorithm.cs
- Image.cs
- RuntimeArgumentHandle.cs
- SqlParameter.cs
- AspNetCacheProfileAttribute.cs
- WmfPlaceableFileHeader.cs
- SqlBulkCopyColumnMapping.cs
- RewritingValidator.cs
- RuntimeConfig.cs
- XsdDateTime.cs
- DesignerVerb.cs
- FontNameConverter.cs
- EditCommandColumn.cs
- AppDomainManager.cs
- NavigateEvent.cs
- XpsDigitalSignature.cs
- AutoResetEvent.cs
- EventHandlersStore.cs
- ServiceDescriptionSerializer.cs
- SafeSerializationManager.cs
- PeerNameRecord.cs
- InvalidEnumArgumentException.cs
- CrossContextChannel.cs
- HtmlTextArea.cs
- HandledMouseEvent.cs
- APCustomTypeDescriptor.cs
- Collection.cs
- Directory.cs
- WizardForm.cs
- StringPropertyBuilder.cs
- ComponentSerializationService.cs
- ComboBoxRenderer.cs
- ListViewItem.cs
- BaseDataListPage.cs
- WebPartConnectionsConfigureVerb.cs
- CustomAssemblyResolver.cs
- CodeTypeOfExpression.cs
- List.cs
- SwitchCase.cs
- SevenBitStream.cs
- DataGridSortCommandEventArgs.cs
- PointLight.cs
- CqlParserHelpers.cs
- DbParameterHelper.cs
- DataControlFieldCollection.cs
- SecurityPermission.cs
- DictionaryEntry.cs
- QilCloneVisitor.cs
- FastEncoderWindow.cs
- MetabaseServerConfig.cs
- WsatStrings.cs
- PackageRelationshipSelector.cs
- TextEditorTables.cs
- LabelLiteral.cs
- HostingEnvironment.cs
- TCEAdapterGenerator.cs
- DataObjectEventArgs.cs
- WeakEventManager.cs
- CaseInsensitiveComparer.cs
- OutputCacheSettingsSection.cs
- GroupJoinQueryOperator.cs
- AutomationPropertyInfo.cs
- GenericTypeParameterConverter.cs
- GridView.cs
- Literal.cs
- TextServicesCompartmentEventSink.cs
- CookielessHelper.cs
- DragStartedEventArgs.cs
- EntryWrittenEventArgs.cs
- _NegoState.cs
- ToolStripDropTargetManager.cs
- TransactionInformation.cs
- NullReferenceException.cs
- GetImportFileNameRequest.cs
- PrivilegedConfigurationManager.cs
- JsonFormatWriterGenerator.cs
- RegexWorker.cs
- RadioButton.cs
- AlternateView.cs
- OracleParameter.cs
- DbConnectionClosed.cs
- LambdaCompiler.Statements.cs
- XsltCompileContext.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SqlDataSourceConfigureSortForm.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- MachineSettingsSection.cs
- WorkflowInspectionServices.cs
- SQLBoolean.cs
- ValueSerializer.cs