Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Log / System / IO / Log / CoTaskMemHandle.cs / 1 / CoTaskMemHandle.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IO.Log { using System; using System.Runtime.InteropServices; using System.Runtime.ConstrainedExecution; using System.Security; internal sealed class CoTaskMemHandle : SafeHandle { public CoTaskMemHandle() : base(IntPtr.Zero, true) { } public override bool IsInvalid { get { return IsClosed || this.handle == IntPtr.Zero; } } [DllImport("ole32.dll"), SuppressUnmanagedCodeSecurity, ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] private static extern void CoTaskMemFree(IntPtr ptr); override protected bool ReleaseHandle() { CoTaskMemFree(this.handle); return true; } } } // 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
- ListBoxItemAutomationPeer.cs
- CursorConverter.cs
- TimeSpanConverter.cs
- AssociatedControlConverter.cs
- Size.cs
- RSAOAEPKeyExchangeDeformatter.cs
- X509ChainElement.cs
- MappingException.cs
- FieldNameLookup.cs
- XsltException.cs
- CryptoKeySecurity.cs
- HostProtectionPermission.cs
- MultipartContentParser.cs
- TableTextElementCollectionInternal.cs
- List.cs
- WebUtil.cs
- DBSqlParser.cs
- XPathPatternBuilder.cs
- OciLobLocator.cs
- ResourceWriter.cs
- XmlText.cs
- UnsafeNativeMethods.cs
- TypeHelper.cs
- TextBoxBase.cs
- OverloadGroupAttribute.cs
- QilSortKey.cs
- HtmlButton.cs
- StateRuntime.cs
- ExpressionBuilderCollection.cs
- ActivationArguments.cs
- InlineCategoriesDocument.cs
- Pair.cs
- KeyProperty.cs
- XmlElementElementCollection.cs
- AnnotationHighlightLayer.cs
- WebPartHeaderCloseVerb.cs
- LocalIdKeyIdentifierClause.cs
- HMACMD5.cs
- DateTimeUtil.cs
- ipaddressinformationcollection.cs
- NativeCompoundFileAPIs.cs
- ListBox.cs
- ToolStripSeparatorRenderEventArgs.cs
- ScrollViewerAutomationPeer.cs
- FormatterConverter.cs
- HostingEnvironmentException.cs
- RoutedPropertyChangedEventArgs.cs
- BinarySerializer.cs
- Wizard.cs
- AuthenticationException.cs
- PageAsyncTask.cs
- TrackingDataItem.cs
- DebugHandleTracker.cs
- ListBoxDesigner.cs
- SystemInformation.cs
- WindowsTokenRoleProvider.cs
- EntityDataSourceDesigner.cs
- ControlEvent.cs
- Point3DValueSerializer.cs
- ChtmlMobileTextWriter.cs
- BufferedGraphicsManager.cs
- BinHexDecoder.cs
- OuterGlowBitmapEffect.cs
- CompilerResults.cs
- XmlException.cs
- SiteMapNodeItem.cs
- TreeNodeMouseHoverEvent.cs
- ToolStripMenuItem.cs
- ReferencedCollectionType.cs
- ListMarkerSourceInfo.cs
- LinqExpressionNormalizer.cs
- EnterpriseServicesHelper.cs
- QilGeneratorEnv.cs
- RootBrowserWindowProxy.cs
- ErasingStroke.cs
- NegatedCellConstant.cs
- BufferAllocator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- OleDbParameterCollection.cs
- EtwProvider.cs
- TriggerActionCollection.cs
- EnumerableRowCollection.cs
- StorageBasedPackageProperties.cs
- PaperSize.cs
- EventWaitHandleSecurity.cs
- PreviewPageInfo.cs
- CompiledIdentityConstraint.cs
- SqlWorkflowInstanceStoreLock.cs
- StateDesigner.TransitionInfo.cs
- If.cs
- FormsIdentity.cs
- MimePart.cs
- X509CertificateInitiatorClientCredential.cs
- XmlBoundElement.cs
- COM2ComponentEditor.cs
- RowVisual.cs
- CalendarBlackoutDatesCollection.cs
- PageParserFilter.cs
- RowType.cs
- __ComObject.cs