Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / Microsoft / Win32 / SafeHandles / SafeFindHandle.cs / 1 / SafeFindHandle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafeFindHandle ** ** ** A wrapper for find handles ** ** ===========================================================*/ using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32; namespace Microsoft.Win32.SafeHandles { internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid { [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)] internal SafeFindHandle() : base(true) {} override protected bool ReleaseHandle() { return Win32Native.FindClose(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafeFindHandle ** ** ** A wrapper for find handles ** ** ===========================================================*/ using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32; namespace Microsoft.Win32.SafeHandles { internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid { [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)] internal SafeFindHandle() : base(true) {} override protected bool ReleaseHandle() { return Win32Native.FindClose(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SubclassTypeValidator.cs
- BindingContext.cs
- TemplatePartAttribute.cs
- ObjectRef.cs
- TaskFormBase.cs
- Drawing.cs
- TaiwanCalendar.cs
- SapiAttributeParser.cs
- ServiceModelExtensionCollectionElement.cs
- Crc32.cs
- HtmlElement.cs
- TextChange.cs
- HostedHttpTransportManager.cs
- MultiPageTextView.cs
- XmlSchemaComplexContentExtension.cs
- XmlDataLoader.cs
- Configuration.cs
- SubstitutionList.cs
- LinqDataSourceDisposeEventArgs.cs
- SQLInt16.cs
- DesignerActionVerbItem.cs
- TrustLevel.cs
- FontWeightConverter.cs
- GeneralTransform.cs
- Polyline.cs
- DSASignatureDeformatter.cs
- OrthographicCamera.cs
- InputLanguageManager.cs
- DNS.cs
- UserPreferenceChangingEventArgs.cs
- RightsManagementPermission.cs
- CqlGenerator.cs
- GraphicsPathIterator.cs
- CreateParams.cs
- ToolboxComponentsCreatedEventArgs.cs
- Select.cs
- GraphicsState.cs
- CultureSpecificStringDictionary.cs
- QuadraticBezierSegment.cs
- XmlSchemaChoice.cs
- _ListenerAsyncResult.cs
- AsymmetricKeyExchangeFormatter.cs
- FloaterParaClient.cs
- CharAnimationBase.cs
- DbUpdateCommandTree.cs
- Quaternion.cs
- DataTransferEventArgs.cs
- PagerSettings.cs
- IpcClientManager.cs
- ProviderUtil.cs
- TreeViewEvent.cs
- ParagraphVisual.cs
- DocumentSchemaValidator.cs
- PositiveTimeSpanValidatorAttribute.cs
- TraceHwndHost.cs
- DbXmlEnabledProviderManifest.cs
- StyleSheet.cs
- TableNameAttribute.cs
- ResourceDescriptionAttribute.cs
- DataFormats.cs
- SoundPlayer.cs
- PlaceHolder.cs
- CompletionBookmark.cs
- WebPartsPersonalization.cs
- DataBoundControlHelper.cs
- NameValuePermission.cs
- SurrogateEncoder.cs
- HtmlImage.cs
- DataGridViewAccessibleObject.cs
- WebServiceClientProxyGenerator.cs
- XmlHierarchicalEnumerable.cs
- ScrollViewer.cs
- UpdatePanelControlTrigger.cs
- SettingsPropertyWrongTypeException.cs
- AssemblyNameProxy.cs
- Renderer.cs
- XmlQueryCardinality.cs
- SqlServices.cs
- ToolStripSettings.cs
- EditorZoneBase.cs
- MetadataItemEmitter.cs
- DataRelation.cs
- DictionaryContent.cs
- SaveFileDialog.cs
- CodeTypeConstructor.cs
- XmlDocumentType.cs
- StylusEventArgs.cs
- BinaryMessageFormatter.cs
- ADRoleFactoryConfiguration.cs
- XsdDuration.cs
- LineInfo.cs
- TimeSpanValidatorAttribute.cs
- MaskedTextBox.cs
- RepeaterCommandEventArgs.cs
- ContainerParaClient.cs
- OdbcUtils.cs
- ModelEditingScope.cs
- LogRestartAreaEnumerator.cs
- GradientSpreadMethodValidation.cs
- TextChangedEventArgs.cs