Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewUpdatedEventArgs.cs
- AnonymousIdentificationModule.cs
- SerialPinChanges.cs
- RuleConditionDialog.Designer.cs
- ContractBase.cs
- DataGridState.cs
- X509ThumbprintKeyIdentifierClause.cs
- ProcessInfo.cs
- ConstrainedDataObject.cs
- GlyphCollection.cs
- RtfToXamlReader.cs
- ZipFileInfoCollection.cs
- GeneralTransform3DCollection.cs
- GeneratedCodeAttribute.cs
- ProcessManager.cs
- precedingquery.cs
- IdentityNotMappedException.cs
- TextFormatterHost.cs
- EntryPointNotFoundException.cs
- SchemaMapping.cs
- Identity.cs
- RsaKeyGen.cs
- BamlTreeMap.cs
- XmlEntity.cs
- RectangleF.cs
- HtmlInputPassword.cs
- TypefaceCollection.cs
- TreeNode.cs
- OdbcTransaction.cs
- FileLogRecordEnumerator.cs
- BuildResultCache.cs
- SvcMapFile.cs
- XmlLinkedNode.cs
- precedingquery.cs
- SubpageParagraph.cs
- DBPropSet.cs
- RadioButtonStandardAdapter.cs
- ControlEvent.cs
- ToolStripContentPanel.cs
- Mutex.cs
- SqlDataSourceCache.cs
- APCustomTypeDescriptor.cs
- ExpanderAutomationPeer.cs
- MarshalByRefObject.cs
- PropertyRef.cs
- SerTrace.cs
- WebEventTraceProvider.cs
- RewritingSimplifier.cs
- DesignBindingPicker.cs
- XslTransformFileEditor.cs
- ItemsChangedEventArgs.cs
- TdsRecordBufferSetter.cs
- Lease.cs
- PeerContact.cs
- WriteTimeStream.cs
- DataServiceKeyAttribute.cs
- TextStore.cs
- UnsafeNativeMethods.cs
- XmlnsPrefixAttribute.cs
- SlotInfo.cs
- OdbcReferenceCollection.cs
- Matrix3DStack.cs
- MatrixTransform3D.cs
- PnrpPermission.cs
- PaintEvent.cs
- CroppedBitmap.cs
- EmbeddedObject.cs
- Base64Decoder.cs
- ListenerSingletonConnectionReader.cs
- HttpListener.cs
- figurelengthconverter.cs
- ViewStateModeByIdAttribute.cs
- _OverlappedAsyncResult.cs
- TrackingValidationObjectDictionary.cs
- SqlConnectionPoolProviderInfo.cs
- ResourceExpressionEditor.cs
- FontUnitConverter.cs
- DataServiceContext.cs
- ResXFileRef.cs
- RoleGroupCollection.cs
- DeviceFilterDictionary.cs
- DescriptionAttribute.cs
- DBPropSet.cs
- SecurityDescriptor.cs
- SQLByte.cs
- ToolboxComponentsCreatingEventArgs.cs
- EmptyControlCollection.cs
- XmlChoiceIdentifierAttribute.cs
- TextPenaltyModule.cs
- BitmapEffect.cs
- Comparer.cs
- TextEffect.cs
- ServiceControllerDesigner.cs
- Int64KeyFrameCollection.cs
- TextShapeableCharacters.cs
- RotateTransform3D.cs
- TransformProviderWrapper.cs
- CalculatedColumn.cs
- JsonGlobals.cs
- AlgoModule.cs