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
- XPathChildIterator.cs
- FileCodeGroup.cs
- MenuTracker.cs
- ToolStripContentPanel.cs
- GacUtil.cs
- SQLBytes.cs
- MultipleViewPattern.cs
- FileStream.cs
- Crypto.cs
- SystemIPAddressInformation.cs
- XsltLoader.cs
- StringInfo.cs
- Package.cs
- AsmxEndpointPickerExtension.cs
- SqlSelectStatement.cs
- MenuBase.cs
- XsltLibrary.cs
- XmlHierarchyData.cs
- Int32CollectionConverter.cs
- HttpRuntimeSection.cs
- CounterSampleCalculator.cs
- CodeDOMUtility.cs
- KeyNotFoundException.cs
- AuthenticationModuleElementCollection.cs
- WorkBatch.cs
- MouseGestureValueSerializer.cs
- SizeChangedEventArgs.cs
- WorkerRequest.cs
- ControlCollection.cs
- RemotingSurrogateSelector.cs
- RenderData.cs
- RtfControlWordInfo.cs
- GenericIdentity.cs
- HttpServerVarsCollection.cs
- TranslateTransform3D.cs
- MultiView.cs
- _TLSstream.cs
- BitmapEffect.cs
- WMIInterop.cs
- NamespaceEmitter.cs
- CatalogZone.cs
- ChangeToolStripParentVerb.cs
- TdsValueSetter.cs
- Registration.cs
- UIElement.cs
- DateTimeOffset.cs
- DuplicateWaitObjectException.cs
- SmtpDigestAuthenticationModule.cs
- ZoneIdentityPermission.cs
- SqlClientWrapperSmiStream.cs
- CopyAttributesAction.cs
- TextEditor.cs
- SymbolType.cs
- SafeSystemMetrics.cs
- HttpCacheParams.cs
- SendMailErrorEventArgs.cs
- FileRecordSequence.cs
- GatewayDefinition.cs
- WebPartConnectionsEventArgs.cs
- BitmapEffectGroup.cs
- BitmapEffectDrawingContextWalker.cs
- Bits.cs
- TextureBrush.cs
- DataGridCellsPanel.cs
- MasterPageParser.cs
- LinkLabelLinkClickedEvent.cs
- MailWebEventProvider.cs
- BitmapEffectGroup.cs
- KeyGestureConverter.cs
- SourceChangedEventArgs.cs
- Int32Converter.cs
- BuildManager.cs
- ReflectionTypeLoadException.cs
- HighlightVisual.cs
- DelimitedListTraceListener.cs
- DrawingCollection.cs
- MimeBasePart.cs
- StrokeCollection.cs
- FixedSOMLineCollection.cs
- OptimalBreakSession.cs
- Padding.cs
- RepeaterItem.cs
- RectangleGeometry.cs
- SqlWriter.cs
- InstallerTypeAttribute.cs
- SmtpDigestAuthenticationModule.cs
- TextTreeTextBlock.cs
- BuildResultCache.cs
- JsonXmlDataContract.cs
- WebProxyScriptElement.cs
- XhtmlConformanceSection.cs
- JournalNavigationScope.cs
- Message.cs
- XmlSortKey.cs
- PropertyGridEditorPart.cs
- ColorTranslator.cs
- Itemizer.cs
- FontWeights.cs
- Odbc32.cs
- Geometry3D.cs