Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int32RectValueSerializer.cs
- ScriptingRoleServiceSection.cs
- ReflectEventDescriptor.cs
- DebugHandleTracker.cs
- Delegate.cs
- SystemShuttingDownException.cs
- XmlQueryTypeFactory.cs
- CacheMemory.cs
- InlineCollection.cs
- infer.cs
- SerializationEventsCache.cs
- StreamSecurityUpgradeAcceptor.cs
- SpecularMaterial.cs
- DPAPIProtectedConfigurationProvider.cs
- PackagePartCollection.cs
- serverconfig.cs
- EntityDesignerUtils.cs
- BooleanStorage.cs
- BooleanFunctions.cs
- CorruptingExceptionCommon.cs
- VScrollProperties.cs
- AxHost.cs
- EventTask.cs
- CodeArrayIndexerExpression.cs
- HttpWebRequestElement.cs
- OperationResponse.cs
- DbParameterHelper.cs
- EmptyArray.cs
- DependencyPropertyChangedEventArgs.cs
- BamlTreeUpdater.cs
- PropertyEmitterBase.cs
- FixedFlowMap.cs
- OpenCollectionAsyncResult.cs
- BamlRecords.cs
- IApplicationTrustManager.cs
- WindowsFormsSectionHandler.cs
- BinarySerializer.cs
- EpmTargetTree.cs
- ConsumerConnectionPointCollection.cs
- CapacityStreamGeometryContext.cs
- IApplicationTrustManager.cs
- SecurityPermission.cs
- SplitterEvent.cs
- LeaseManager.cs
- WebServiceReceiveDesigner.cs
- MultiByteCodec.cs
- ClientFormsAuthenticationCredentials.cs
- XmlDataCollection.cs
- TemplateField.cs
- Cursor.cs
- _NestedSingleAsyncResult.cs
- RenderCapability.cs
- Polygon.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Span.cs
- ResourceAttributes.cs
- BamlRecordReader.cs
- ParallelLoopState.cs
- DiscoveryReference.cs
- DependencyObjectValidator.cs
- SocketPermission.cs
- SmtpFailedRecipientException.cs
- AuthStoreRoleProvider.cs
- DataGridViewComboBoxCell.cs
- UpdatePanelTriggerCollection.cs
- FeedUtils.cs
- RecognizerInfo.cs
- ApplicationSecurityManager.cs
- BaseAppDomainProtocolHandler.cs
- KeyPullup.cs
- StringAnimationUsingKeyFrames.cs
- ScrollableControl.cs
- OrderByExpression.cs
- LocationEnvironment.cs
- WindowsStatic.cs
- WeakReferenceKey.cs
- RestClientProxyHandler.cs
- GenericRootAutomationPeer.cs
- AnnotationAuthorChangedEventArgs.cs
- TextBox.cs
- HostingEnvironmentException.cs
- CLSCompliantAttribute.cs
- TreeBuilderXamlTranslator.cs
- AlphaSortedEnumConverter.cs
- InternalPolicyElement.cs
- AccessControlEntry.cs
- ListViewUpdatedEventArgs.cs
- CqlGenerator.cs
- Int64.cs
- CommandHelpers.cs
- PropertyValueChangedEvent.cs
- NamespaceDisplayAutomationPeer.cs
- BinaryKeyIdentifierClause.cs
- ThreadAttributes.cs
- HwndProxyElementProvider.cs
- Function.cs
- CodeAttributeArgumentCollection.cs
- ConvertEvent.cs
- ImageField.cs