Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / SafeNativeMethods.cs / 1 / 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
- ServiceBehaviorElement.cs
- ExceptionHandlersDesigner.cs
- TransformerInfo.cs
- TrackingProfile.cs
- ErrorStyle.cs
- AssertHelper.cs
- WindowVisualStateTracker.cs
- ComboBox.cs
- Quaternion.cs
- FrameSecurityDescriptor.cs
- DataContractJsonSerializerOperationBehavior.cs
- IntSecurity.cs
- ActionMessageFilterTable.cs
- WindowExtensionMethods.cs
- TextTreeUndoUnit.cs
- DeploymentExceptionMapper.cs
- HtmlWindow.cs
- CodeTypeReference.cs
- IDReferencePropertyAttribute.cs
- TableLayoutStyleCollection.cs
- PackWebResponse.cs
- DefinitionProperties.cs
- QuestionEventArgs.cs
- KernelTypeValidation.cs
- ValuePattern.cs
- GeneralTransform2DTo3D.cs
- MeasureItemEvent.cs
- DataGridViewComboBoxEditingControl.cs
- SimpleMailWebEventProvider.cs
- BoundingRectTracker.cs
- Filter.cs
- SqlGenericUtil.cs
- SmtpReplyReaderFactory.cs
- SubstitutionList.cs
- SamlEvidence.cs
- ServerReliableChannelBinder.cs
- XmlConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- ExpressionBinding.cs
- FactoryGenerator.cs
- AnnotationResource.cs
- IEnumerable.cs
- OrthographicCamera.cs
- RoleServiceManager.cs
- DefaultProxySection.cs
- DocumentPage.cs
- basecomparevalidator.cs
- LinkTarget.cs
- DataSourceProvider.cs
- HtmlContainerControl.cs
- ResourceDescriptionAttribute.cs
- PathHelper.cs
- InfoCardService.cs
- UnsignedPublishLicense.cs
- FontDifferentiator.cs
- CompositeFontFamily.cs
- Documentation.cs
- AsyncDataRequest.cs
- Rule.cs
- ProcessModelInfo.cs
- Thread.cs
- WebPartZoneBase.cs
- GenerateScriptTypeAttribute.cs
- TreeNodeBinding.cs
- MimeBasePart.cs
- StickyNoteAnnotations.cs
- EllipseGeometry.cs
- SamlAuthenticationStatement.cs
- ReferenceCountedObject.cs
- PointHitTestResult.cs
- ListenerElementsCollection.cs
- ExpressionReplacer.cs
- OdbcParameterCollection.cs
- ObjectContext.cs
- BidPrivateBase.cs
- _MultipleConnectAsync.cs
- Int16Storage.cs
- DataTable.cs
- HierarchicalDataSourceIDConverter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Int32.cs
- RequestCachingSection.cs
- ResourceDefaultValueAttribute.cs
- UnsafeNativeMethods.cs
- FileBasedResourceGroveler.cs
- CanonicalFontFamilyReference.cs
- LongCountAggregationOperator.cs
- NativeRecognizer.cs
- EntitySqlQueryState.cs
- Renderer.cs
- ServicesUtilities.cs
- RuleSettings.cs
- SessionIDManager.cs
- SolidColorBrush.cs
- TypeInformation.cs
- CmsUtils.cs
- SplashScreen.cs
- ScrollChrome.cs
- PathSegment.cs
- GroupBox.cs