Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / SafeNativeMethods.cs / 1305376 / SafeNativeMethods.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web { using System.Runtime.InteropServices; using System; using System.Security.Permissions; using System.Collections; using System.IO; using System.Text; [ System.Runtime.InteropServices.ComVisible(false), System.Security.SuppressUnmanagedCodeSecurityAttribute() ] internal sealed class SafeNativeMethods { private SafeNativeMethods() {} [DllImport(ModName.KERNEL32_FULL_NAME)] internal /*public*/ extern static int GetCurrentProcessId(); [DllImport(ModName.KERNEL32_FULL_NAME)] internal /*public*/ extern static int GetCurrentThreadId(); [DllImport(ModName.KERNEL32_FULL_NAME)] internal static extern bool QueryPerformanceCounter( [System.Runtime.InteropServices.Out, In] ref long lpPerformanceCount); [DllImport(ModName.KERNEL32_FULL_NAME)] internal static extern bool QueryPerformanceFrequency( [System.Runtime.InteropServices.Out, In] ref long lpFrequency); // required for HttpDebugHandlerTimeLog #if PERF [DllImport(ModName.KERNEL32_FULL_NAME, CharSet=CharSet.Unicode)] internal static extern void OutputDebugString(String message); #endif } } // 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
- NonceToken.cs
- PrintSchema.cs
- MulticastNotSupportedException.cs
- SynchronizedChannelCollection.cs
- ReferenceEqualityComparer.cs
- EntryPointNotFoundException.cs
- WebPartZone.cs
- MultiSelector.cs
- Context.cs
- ConnectionPoolManager.cs
- WCFModelStrings.Designer.cs
- Rights.cs
- ProfileService.cs
- WebPartMenuStyle.cs
- ContentElement.cs
- XPathItem.cs
- RegexInterpreter.cs
- ExpressionNormalizer.cs
- NativeMethods.cs
- CompoundFileDeflateTransform.cs
- ThreadPool.cs
- HostedImpersonationContext.cs
- WindowsTreeView.cs
- ImageListUtils.cs
- HitTestParameters.cs
- EntityEntry.cs
- PointAnimationUsingKeyFrames.cs
- ClientApiGenerator.cs
- DataTransferEventArgs.cs
- TouchesCapturedWithinProperty.cs
- StrokeRenderer.cs
- BindingOperations.cs
- XmlHierarchicalDataSourceView.cs
- XLinq.cs
- nulltextnavigator.cs
- DispatcherProcessingDisabled.cs
- SchemaReference.cs
- FailedToStartupUIException.cs
- XpsFilter.cs
- HandoffBehavior.cs
- DynamicMethod.cs
- VirtualDirectoryMapping.cs
- TransactionManager.cs
- DrawingContextWalker.cs
- _UncName.cs
- DefaultAsyncDataDispatcher.cs
- DayRenderEvent.cs
- EmbeddedMailObject.cs
- DragEventArgs.cs
- RuntimeEnvironment.cs
- NameObjectCollectionBase.cs
- ConfigXmlText.cs
- EdmMember.cs
- NonSerializedAttribute.cs
- AddInControllerImpl.cs
- XmlExtensionFunction.cs
- DispatchWrapper.cs
- TypefaceMetricsCache.cs
- ResourcePart.cs
- DecoderFallback.cs
- WsatTransactionInfo.cs
- EventProviderClassic.cs
- XmlReaderSettings.cs
- UdpAnnouncementEndpoint.cs
- CipherData.cs
- DivideByZeroException.cs
- OleDbReferenceCollection.cs
- SiteMap.cs
- SizeChangedEventArgs.cs
- SlotInfo.cs
- IIS7WorkerRequest.cs
- MobileListItemCollection.cs
- FormsAuthentication.cs
- Column.cs
- OdbcDataAdapter.cs
- SafeCryptContextHandle.cs
- CodeTypeParameter.cs
- CommandBinding.cs
- TemplateField.cs
- BrowserCapabilitiesCodeGenerator.cs
- StateDesignerConnector.cs
- GroupBoxDesigner.cs
- Authorization.cs
- NullableConverter.cs
- RowUpdatingEventArgs.cs
- HGlobalSafeHandle.cs
- METAHEADER.cs
- DependencyPropertyKind.cs
- CodeGroup.cs
- LoadWorkflowByKeyAsyncResult.cs
- SqlUserDefinedAggregateAttribute.cs
- FullTextLine.cs
- XmlHierarchicalEnumerable.cs
- NotImplementedException.cs
- SpeakProgressEventArgs.cs
- ImageField.cs
- DataExpression.cs
- StorageModelBuildProvider.cs
- Rotation3DAnimationBase.cs
- BindingMemberInfo.cs