Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / Microsoft / Win32 / SafeHandles / SafePEFileHandle.cs / 1305376 / SafePEFileHandle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Security; namespace Microsoft.Win32.SafeHandles { ////// Handle to a VM PEFile * /// [SecurityCritical] internal sealed class SafePEFileHandle : SafeHandleZeroOrMinusOneIsInvalid { private SafePEFileHandle() : base(true) { } [DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [SuppressUnmanagedCodeSecurity] private static extern void ReleaseSafePEFileHandle(IntPtr peFile); [SecurityCritical] protected override bool ReleaseHandle() { ReleaseSafePEFileHandle(handle); return true; } } } // 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
- XmlAttributeOverrides.cs
- BitmapCodecInfoInternal.cs
- CompilerErrorCollection.cs
- CharacterHit.cs
- SecurityDocument.cs
- ConstructorBuilder.cs
- BitmapEffectState.cs
- RowToParametersTransformer.cs
- NonSerializedAttribute.cs
- StateMachineSubscription.cs
- WebHeaderCollection.cs
- ParameterToken.cs
- SystemIPv4InterfaceProperties.cs
- ReadOnlyObservableCollection.cs
- XmlUTF8TextReader.cs
- HighlightVisual.cs
- Attributes.cs
- newinstructionaction.cs
- BaseDataBoundControlDesigner.cs
- UriTemplateDispatchFormatter.cs
- Vector3DAnimationBase.cs
- TextBlock.cs
- ClientRoleProvider.cs
- WebPartCatalogCloseVerb.cs
- TextComposition.cs
- Tokenizer.cs
- MsmqMessageSerializationFormat.cs
- ScalarType.cs
- DynamicValidatorEventArgs.cs
- NameNode.cs
- DictionaryKeyPropertyAttribute.cs
- InvalidProgramException.cs
- CopyOnWriteList.cs
- MarkupObject.cs
- InkCollectionBehavior.cs
- TemplateNameScope.cs
- WebPartRestoreVerb.cs
- ValuePatternIdentifiers.cs
- SocketElement.cs
- CounterCreationDataCollection.cs
- FreezableCollection.cs
- XmlName.cs
- XmlSchemaSimpleTypeUnion.cs
- WebHttpEndpoint.cs
- Renderer.cs
- PrincipalPermission.cs
- CancelEventArgs.cs
- DefinitionBase.cs
- XmlUnspecifiedAttribute.cs
- RenderTargetBitmap.cs
- AdRotator.cs
- CustomPopupPlacement.cs
- PackagePart.cs
- SrgsSubset.cs
- ExpressionList.cs
- ApplicationProxyInternal.cs
- XPathNodePointer.cs
- DisplayNameAttribute.cs
- SdlChannelSink.cs
- PlaceHolder.cs
- SortQuery.cs
- DES.cs
- RightsController.cs
- XmlRawWriterWrapper.cs
- PropertyItemInternal.cs
- HttpModulesSection.cs
- PageCodeDomTreeGenerator.cs
- CachedFontFace.cs
- Int32RectConverter.cs
- PriorityBindingExpression.cs
- EngineSiteSapi.cs
- WebMessageBodyStyleHelper.cs
- BinaryUtilClasses.cs
- SqlDataSourceFilteringEventArgs.cs
- hebrewshape.cs
- ProviderCommandInfoUtils.cs
- TdsRecordBufferSetter.cs
- SoapUnknownHeader.cs
- XmlSignatureProperties.cs
- oledbmetadatacolumnnames.cs
- DataListItemEventArgs.cs
- TextCompositionEventArgs.cs
- RichTextBox.cs
- RectangleGeometry.cs
- Brush.cs
- TableItemPatternIdentifiers.cs
- TemplatedMailWebEventProvider.cs
- Msec.cs
- ZoneButton.cs
- ScriptingSectionGroup.cs
- ColumnWidthChangingEvent.cs
- StylusButtonCollection.cs
- HtmlInputHidden.cs
- VariableQuery.cs
- ExpressionPrefixAttribute.cs
- DataSetFieldSchema.cs
- DataGridCaption.cs
- RegularExpressionValidator.cs
- TableLayoutPanel.cs
- SafeNativeMethods.cs