Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ExceptionHelpers.cs
- AddInContractAttribute.cs
- AudioStateChangedEventArgs.cs
- XPathArrayIterator.cs
- ReservationCollection.cs
- XNodeSchemaApplier.cs
- ThreadStaticAttribute.cs
- HandlerBase.cs
- ImageCodecInfoPrivate.cs
- BrowserDefinition.cs
- CursorConverter.cs
- ModelTreeEnumerator.cs
- SelectionGlyphBase.cs
- Form.cs
- DocumentsTrace.cs
- TextRangeSerialization.cs
- ApplicationContext.cs
- ValidationResult.cs
- KnownTypeHelper.cs
- DrawingAttributesDefaultValueFactory.cs
- HttpModuleAction.cs
- File.cs
- SqlUserDefinedAggregateAttribute.cs
- PriorityRange.cs
- EncodingTable.cs
- NonSerializedAttribute.cs
- StylusButtonCollection.cs
- TextTreeFixupNode.cs
- EdmProviderManifest.cs
- XamlFilter.cs
- CookieProtection.cs
- XmlSecureResolver.cs
- VectorAnimation.cs
- SmtpNegotiateAuthenticationModule.cs
- StreamWriter.cs
- Regex.cs
- DynamicValidatorEventArgs.cs
- WebWorkflowRole.cs
- RadioButtonFlatAdapter.cs
- Validator.cs
- XamlPointCollectionSerializer.cs
- ColorTransformHelper.cs
- _emptywebproxy.cs
- TableDetailsCollection.cs
- DataBoundLiteralControl.cs
- TransportChannelFactory.cs
- SynchronizedDispatch.cs
- ModuleElement.cs
- ObjectKeyFrameCollection.cs
- ImageInfo.cs
- NullableConverter.cs
- MasterPageBuildProvider.cs
- MonitoringDescriptionAttribute.cs
- ObjectDataSourceMethodEventArgs.cs
- ToolStripRenderEventArgs.cs
- SwitchLevelAttribute.cs
- RadialGradientBrush.cs
- GridViewSelectEventArgs.cs
- MemoryMappedFileSecurity.cs
- PartialArray.cs
- ParseElement.cs
- TrackingProfile.cs
- AnimationTimeline.cs
- DocumentApplication.cs
- NavigationProgressEventArgs.cs
- CodeAccessSecurityEngine.cs
- XamlDesignerSerializationManager.cs
- ProvideValueServiceProvider.cs
- processwaithandle.cs
- RefreshPropertiesAttribute.cs
- ConsumerConnectionPoint.cs
- PropertyDescriptor.cs
- StringConverter.cs
- BulletChrome.cs
- MouseGesture.cs
- connectionpool.cs
- FlowDocumentScrollViewer.cs
- ListSortDescriptionCollection.cs
- RotateTransform3D.cs
- SamlDelegatingWriter.cs
- FlowNode.cs
- httpstaticobjectscollection.cs
- TextFormatter.cs
- HttpModuleCollection.cs
- HttpSessionStateBase.cs
- CacheForPrimitiveTypes.cs
- ImageMap.cs
- MexServiceChannelBuilder.cs
- ValidationError.cs
- SafeFindHandle.cs
- DocumentOrderComparer.cs
- DrawingState.cs
- HttpCookieCollection.cs
- MaskInputRejectedEventArgs.cs
- WsdlInspector.cs
- HttpSessionStateBase.cs
- OptimizedTemplateContent.cs
- Win32SafeHandles.cs
- UpdateProgress.cs
- DoubleAnimationUsingKeyFrames.cs