Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / MULTI_QI.cs / 1305376 / 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
- XamlFilter.cs
- IApplicationTrustManager.cs
- SmtpDateTime.cs
- SortAction.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ObjectDataProvider.cs
- SmtpMail.cs
- OleServicesContext.cs
- DataGridViewCellPaintingEventArgs.cs
- AudioStateChangedEventArgs.cs
- Wrapper.cs
- SimpleApplicationHost.cs
- PageRouteHandler.cs
- DataSet.cs
- SpellerHighlightLayer.cs
- OleDbParameterCollection.cs
- Win32SafeHandles.cs
- PointCollection.cs
- ResourceType.cs
- ParentQuery.cs
- DataControlLinkButton.cs
- CalendarTable.cs
- METAHEADER.cs
- AppSettingsExpressionEditor.cs
- GuidConverter.cs
- RTLAwareMessageBox.cs
- AddInDeploymentState.cs
- DrawingVisualDrawingContext.cs
- MetaModel.cs
- SponsorHelper.cs
- CallbackValidator.cs
- ElementNotAvailableException.cs
- XhtmlCssHandler.cs
- MsmqIntegrationElement.cs
- PhysicalAddress.cs
- DirectionalLight.cs
- ResourceManager.cs
- ThicknessConverter.cs
- PriorityBindingExpression.cs
- ThemeDirectoryCompiler.cs
- TagMapCollection.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- AxisAngleRotation3D.cs
- TreeIterator.cs
- WmpBitmapEncoder.cs
- DashStyle.cs
- NativeMethods.cs
- FormatterServicesNoSerializableCheck.cs
- ColumnBinding.cs
- ArrayMergeHelper.cs
- ListControlConvertEventArgs.cs
- InvalidateEvent.cs
- RestClientProxyHandler.cs
- TreeNodeMouseHoverEvent.cs
- RoutedEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- Focus.cs
- TopClause.cs
- Monitor.cs
- ToggleProviderWrapper.cs
- AuthenticationModulesSection.cs
- UIElement3DAutomationPeer.cs
- StringBlob.cs
- HebrewNumber.cs
- NamedElement.cs
- Matrix.cs
- DataMisalignedException.cs
- XmlWellformedWriter.cs
- BaseDataList.cs
- RealizedColumnsBlock.cs
- TypefaceMap.cs
- ValueTable.cs
- XamlInterfaces.cs
- OleDbConnection.cs
- ToolboxItemAttribute.cs
- listitem.cs
- HttpProfileBase.cs
- LiteralText.cs
- SemaphoreSecurity.cs
- X509Chain.cs
- ChangeInterceptorAttribute.cs
- ClientBase.cs
- ServicePointManager.cs
- DesignerPainter.cs
- ActivationServices.cs
- LinqDataSourceDisposeEventArgs.cs
- Visual3D.cs
- ThemeDictionaryExtension.cs
- GeneralTransform3DGroup.cs
- MSHTMLHostUtil.cs
- ConfigsHelper.cs
- RangeBase.cs
- Native.cs
- UrlRoutingHandler.cs
- SizeAnimationUsingKeyFrames.cs
- FontConverter.cs
- PTConverter.cs
- CompressionTracing.cs
- UniqueConstraint.cs
- ComAwareEventInfo.cs