Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / PerformanceData / PerfProviderCollection.cs / 1305376 / PerfProviderCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics.PerformanceData { using System; using System.Threading; using System.ComponentModel; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using Microsoft.Win32; using Microsoft.Win32.SafeHandles; internal sealed class PerfProvider { internal Guid m_providerGuid; internal Int32 m_counterSet; internal SafePerfProviderHandle m_hProvider; //// [System.Security.SecurityCritical] internal PerfProvider(Guid providerGuid) { m_providerGuid = providerGuid; uint Status = UnsafeNativeMethods.PerfStartProvider(ref m_providerGuid, null, out m_hProvider); // ERROR_INVALID_PARAMETER, ERROR_OUTOFMEMORY if (Status != (uint) UnsafeNativeMethods.ERROR_SUCCESS) { throw new Win32Exception((int) Status); } } } internal static class PerfProviderCollection { // Internal global PERFLIB V2 provider collection that contains a collection of PerfProvider objects. // Use mutex to serialize collection initialization/update. // private static Object s_hiddenInternalSyncObject; private static List// // // s_providerList = new List (); private static Dictionary
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSet.cs
- ElementsClipboardData.cs
- _DynamicWinsockMethods.cs
- ToolStripPanelRow.cs
- AuthenticationServiceManager.cs
- ChtmlFormAdapter.cs
- DataServiceStreamProviderWrapper.cs
- CodeTypeParameterCollection.cs
- OleDbException.cs
- EntitySetBaseCollection.cs
- TTSEngineProxy.cs
- XPathExpr.cs
- GridSplitterAutomationPeer.cs
- ToolStripOverflowButton.cs
- Misc.cs
- XmlProcessingInstruction.cs
- DiscoveryEndpointValidator.cs
- SoapIncludeAttribute.cs
- WorkflowViewStateService.cs
- WebConfigurationFileMap.cs
- CompilationUnit.cs
- WebPartConnectionsCloseVerb.cs
- RoutedEventArgs.cs
- XPathEmptyIterator.cs
- DeclarativeCatalogPart.cs
- ServicesExceptionNotHandledEventArgs.cs
- DataRecordObjectView.cs
- FlowDocumentView.cs
- HtmlUtf8RawTextWriter.cs
- CodeSubDirectoriesCollection.cs
- WebConfigurationManager.cs
- unitconverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- updateconfighost.cs
- SingleKeyFrameCollection.cs
- TextPointer.cs
- SelectionProcessor.cs
- EventHandlerList.cs
- WebExceptionStatus.cs
- SupportedAddressingMode.cs
- ColorMap.cs
- AuthenticationModulesSection.cs
- IOException.cs
- ExtentJoinTreeNode.cs
- MembershipSection.cs
- BitmapEffectOutputConnector.cs
- EnumerableCollectionView.cs
- CodeTypeReferenceExpression.cs
- BehaviorService.cs
- XmlMembersMapping.cs
- PathGeometry.cs
- DataGridViewColumnEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- WaitForChangedResult.cs
- FunctionDetailsReader.cs
- Win32.cs
- ToolStripDropTargetManager.cs
- ChameleonKey.cs
- PanelDesigner.cs
- _StreamFramer.cs
- tibetanshape.cs
- Column.cs
- TargetException.cs
- ChangesetResponse.cs
- XhtmlBasicImageAdapter.cs
- CultureInfo.cs
- FileDialogPermission.cs
- _LoggingObject.cs
- SchemaExporter.cs
- PreviewPrintController.cs
- CalendarButton.cs
- OpCopier.cs
- NavigationProperty.cs
- ServiceDebugBehavior.cs
- CommonXSendMessage.cs
- TextEditorSelection.cs
- ReflectionServiceProvider.cs
- BitmapSourceSafeMILHandle.cs
- RangeBase.cs
- SpecularMaterial.cs
- PropertyPushdownHelper.cs
- TrackingCondition.cs
- ThrowHelper.cs
- PropertyInformation.cs
- EngineSite.cs
- ExpandCollapsePattern.cs
- _NestedSingleAsyncResult.cs
- StringComparer.cs
- SinglePageViewer.cs
- ColorConvertedBitmap.cs
- ThreadPool.cs
- MarshalByRefObject.cs
- StringUtil.cs
- HelpProvider.cs
- ActiveXHelper.cs
- SQLChars.cs
- TextEffect.cs
- LookupNode.cs
- NetworkStream.cs
- NotifyCollectionChangedEventArgs.cs