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
- CompareValidator.cs
- XPathParser.cs
- MenuItemStyleCollection.cs
- PseudoWebRequest.cs
- cache.cs
- CellLabel.cs
- ProgressBarHighlightConverter.cs
- Variant.cs
- WindowsNonControl.cs
- DataGridViewHitTestInfo.cs
- AmbientLight.cs
- RC2.cs
- ExpressionBindingCollection.cs
- GroupLabel.cs
- PassportIdentity.cs
- CustomAttribute.cs
- CodeTypeMemberCollection.cs
- StartUpEventArgs.cs
- AnonymousIdentificationModule.cs
- ObjectPersistData.cs
- xsdvalidator.cs
- RuleSetReference.cs
- UserUseLicenseDictionaryLoader.cs
- InvokeGenerator.cs
- TypeDescriptionProviderAttribute.cs
- ExpressionDumper.cs
- Avt.cs
- MetafileHeaderWmf.cs
- ObjectManager.cs
- RectangleHotSpot.cs
- RadioButtonList.cs
- ZipIOExtraFieldElement.cs
- DBCommand.cs
- RSAOAEPKeyExchangeFormatter.cs
- TextBox.cs
- PrtTicket_Public_Simple.cs
- CodeCommentStatementCollection.cs
- httpstaticobjectscollection.cs
- BoundColumn.cs
- ControlPaint.cs
- StatusBarPanelClickEvent.cs
- ThicknessAnimation.cs
- StreamGeometry.cs
- PropagatorResult.cs
- CodeComment.cs
- PageThemeBuildProvider.cs
- DBSqlParser.cs
- ProvideValueServiceProvider.cs
- XmlILOptimizerVisitor.cs
- DependencyPropertyHelper.cs
- Choices.cs
- ActiveXHost.cs
- ErrorRuntimeConfig.cs
- SubpageParagraph.cs
- ListBoxItem.cs
- ChtmlSelectionListAdapter.cs
- ModulesEntry.cs
- BuildManagerHost.cs
- CheckBoxField.cs
- UInt16.cs
- ErrorHandlerFaultInfo.cs
- XmlTypeAttribute.cs
- Int16.cs
- COM2IDispatchConverter.cs
- LeftCellWrapper.cs
- GenericEnumerator.cs
- WmlPageAdapter.cs
- ThreadNeutralSemaphore.cs
- SevenBitStream.cs
- ToolboxItemFilterAttribute.cs
- OpenTypeLayout.cs
- HtmlButton.cs
- nulltextcontainer.cs
- EnumerableRowCollection.cs
- FontStyle.cs
- Byte.cs
- LazyTextWriterCreator.cs
- DataSvcMapFile.cs
- TextBox.cs
- Point.cs
- DtrList.cs
- AutomationProperty.cs
- _PooledStream.cs
- ImageClickEventArgs.cs
- TextServicesManager.cs
- DependencyPropertyHelper.cs
- Match.cs
- TreeView.cs
- CheckBox.cs
- OdbcStatementHandle.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- GridViewDeleteEventArgs.cs
- KeyConverter.cs
- DataGridRelationshipRow.cs
- ProjectionRewriter.cs
- DataList.cs
- FormViewPageEventArgs.cs
- FreeFormDesigner.cs
- XmlLoader.cs
- ObjectDataSourceSelectingEventArgs.cs