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
- DataSysAttribute.cs
- DbConnectionInternal.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Menu.cs
- FlowLayout.cs
- DatatypeImplementation.cs
- ExecutorLocksHeldException.cs
- HostProtectionPermission.cs
- ipaddressinformationcollection.cs
- HtmlProps.cs
- PassportAuthentication.cs
- ControlBindingsCollection.cs
- SendingRequestEventArgs.cs
- TickBar.cs
- SqlConnectionString.cs
- DateTimeOffset.cs
- RegistryDataKey.cs
- LogicalTreeHelper.cs
- DataColumnChangeEvent.cs
- AssemblyInfo.cs
- DefaultValueTypeConverter.cs
- ProcessHost.cs
- WorkflowStateRollbackService.cs
- NotificationContext.cs
- CodeAttachEventStatement.cs
- FunctionMappingTranslator.cs
- TextEditorMouse.cs
- FtpCachePolicyElement.cs
- NodeFunctions.cs
- PeerOutputChannel.cs
- DocumentPageViewAutomationPeer.cs
- documentsequencetextcontainer.cs
- ProcessHost.cs
- ExpandableObjectConverter.cs
- TreeNodeConverter.cs
- StrokeNodeOperations2.cs
- XmlChildNodes.cs
- DesignTimeHTMLTextWriter.cs
- LocalClientSecuritySettingsElement.cs
- DecoderBestFitFallback.cs
- LinearGradientBrush.cs
- UDPClient.cs
- ExecutionContext.cs
- SecurityUniqueId.cs
- NativeMethods.cs
- InputMethod.cs
- ReflectionPermission.cs
- XslCompiledTransform.cs
- TakeQueryOptionExpression.cs
- WebPartConnectionsCancelVerb.cs
- TargetFrameworkAttribute.cs
- GeneralTransform2DTo3D.cs
- SoapReflectionImporter.cs
- _CommandStream.cs
- EventHandlerList.cs
- AnnotationResourceCollection.cs
- BitmapDownload.cs
- SizeAnimation.cs
- AppDomainManager.cs
- InternalsVisibleToAttribute.cs
- Point3DCollection.cs
- DataPagerFieldCommandEventArgs.cs
- DataSvcMapFileSerializer.cs
- BindingList.cs
- ToolboxItem.cs
- SortedDictionary.cs
- OverflowException.cs
- ChtmlTextWriter.cs
- Directory.cs
- Stacktrace.cs
- SplitterPanel.cs
- DataGridViewRowCollection.cs
- GeometryDrawing.cs
- InvalidOperationException.cs
- securitycriticaldata.cs
- AnnotationResourceCollection.cs
- StopStoryboard.cs
- Msmq4SubqueuePoisonHandler.cs
- WebAdminConfigurationHelper.cs
- ConfigErrorGlyph.cs
- CollectionViewProxy.cs
- ApplicationActivator.cs
- ISAPIRuntime.cs
- DataServiceBehavior.cs
- PropertyChangedEventArgs.cs
- HtmlElementCollection.cs
- System.Data.OracleClient_BID.cs
- AppDomainProtocolHandler.cs
- EntityCommandCompilationException.cs
- AddingNewEventArgs.cs
- GeometryCollection.cs
- HttpInputStream.cs
- XmlCharacterData.cs
- ByteAnimationBase.cs
- Section.cs
- ObjectConverter.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- EventLogTraceListener.cs
- DateRangeEvent.cs
- SequentialOutput.cs