Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / MULTI_QI.cs / 1 / MULTI_QI.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Web; using System.Web.Util; using System.Security; using System.IO; using System.Web.Hosting; using System.Runtime.InteropServices; using System.Reflection; using System.Collections.Specialized; using System.Xml; using System.Security.Principal; using System.Threading; using System.Globalization; [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI : IDisposable { internal MULTI_QI(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI_X64 : IDisposable { internal MULTI_QI_X64(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; padding = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; #pragma warning disable 0649 internal int padding; #pragma warning restore 0649 void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Web; using System.Web.Util; using System.Security; using System.IO; using System.Web.Hosting; using System.Runtime.InteropServices; using System.Reflection; using System.Collections.Specialized; using System.Xml; using System.Security.Principal; using System.Threading; using System.Globalization; [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI : IDisposable { internal MULTI_QI(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI_X64 : IDisposable { internal MULTI_QI_X64(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; padding = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; #pragma warning disable 0649 internal int padding; #pragma warning restore 0649 void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } } // 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
- DataTableNameHandler.cs
- IdnMapping.cs
- QueueTransferProtocol.cs
- ListManagerBindingsCollection.cs
- InstanceDataCollectionCollection.cs
- CodeIdentifier.cs
- HttpCachePolicyElement.cs
- counter.cs
- WsatStrings.cs
- RuleSettings.cs
- InheritanceAttribute.cs
- Label.cs
- SafeArrayRankMismatchException.cs
- _AcceptOverlappedAsyncResult.cs
- ScriptingAuthenticationServiceSection.cs
- ConfigUtil.cs
- MultiAsyncResult.cs
- ApplicationInfo.cs
- ArraySet.cs
- StorageRoot.cs
- ArrangedElementCollection.cs
- Activity.cs
- EmptyReadOnlyDictionaryInternal.cs
- RestHandler.cs
- SchemaAttDef.cs
- SystemTcpStatistics.cs
- DataObjectAttribute.cs
- PartitionResolver.cs
- SystemWebExtensionsSectionGroup.cs
- ToolStripOverflowButton.cs
- Win32Native.cs
- FastEncoder.cs
- CryptoApi.cs
- SystemIdentity.cs
- AmbiguousMatchException.cs
- HostSecurityManager.cs
- DynamicPropertyHolder.cs
- ComNativeDescriptor.cs
- DataSourceXmlAttributeAttribute.cs
- MarshalByRefObject.cs
- DSASignatureDeformatter.cs
- DecimalConverter.cs
- ComEventsInfo.cs
- RelationshipSet.cs
- EllipseGeometry.cs
- DocumentViewer.cs
- MemoryRecordBuffer.cs
- PhonemeEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- EventHandlerService.cs
- MenuTracker.cs
- SqlClientMetaDataCollectionNames.cs
- TracingConnectionInitiator.cs
- StandardCommands.cs
- OleDbSchemaGuid.cs
- TextBoxAutomationPeer.cs
- OuterGlowBitmapEffect.cs
- MemberCollection.cs
- DataControlLinkButton.cs
- DBDataPermission.cs
- GridViewSortEventArgs.cs
- SqlGenerator.cs
- PropertyValidationContext.cs
- DiscardableAttribute.cs
- odbcmetadatacolumnnames.cs
- ContextQuery.cs
- DataGridViewRowHeaderCell.cs
- AutomationIdentifierGuids.cs
- BasicCellRelation.cs
- RoleManagerEventArgs.cs
- RichTextBoxDesigner.cs
- Wildcard.cs
- IdSpace.cs
- MenuCommandsChangedEventArgs.cs
- InstanceNormalEvent.cs
- ISAPIWorkerRequest.cs
- ToolStripItemEventArgs.cs
- HttpSysSettings.cs
- XPathNodeIterator.cs
- Graphics.cs
- CommentEmitter.cs
- CodeVariableDeclarationStatement.cs
- X509RecipientCertificateClientElement.cs
- XmlSchema.cs
- CreatingCookieEventArgs.cs
- AuthenticationServiceManager.cs
- CodeGenHelper.cs
- CurrentChangedEventManager.cs
- CustomActivityDesigner.cs
- DLinqAssociationProvider.cs
- ResourceAttributes.cs
- Assembly.cs
- ToolStripOverflowButton.cs
- ExtendedPropertyDescriptor.cs
- EmbossBitmapEffect.cs
- Typeface.cs
- DispatcherSynchronizationContext.cs
- IconHelper.cs
- AttributeAction.cs
- FusionWrap.cs