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
- UriSection.cs
- ProcessHostMapPath.cs
- AliasGenerator.cs
- Header.cs
- DataGridViewCellCancelEventArgs.cs
- DocumentPage.cs
- QueryLifecycle.cs
- GroupBoxRenderer.cs
- MarshalDirectiveException.cs
- MinimizableAttributeTypeConverter.cs
- TakeQueryOptionExpression.cs
- SimpleRecyclingCache.cs
- InertiaRotationBehavior.cs
- FullTextBreakpoint.cs
- Task.cs
- OdbcFactory.cs
- ViewKeyConstraint.cs
- NetworkAddressChange.cs
- XMLDiffLoader.cs
- Intellisense.cs
- ListParagraph.cs
- SiteMapDataSource.cs
- CodeGeneratorOptions.cs
- ServiceContractAttribute.cs
- LoadedOrUnloadedOperation.cs
- AlphabeticalEnumConverter.cs
- AssemblyHash.cs
- FontStyle.cs
- PnrpPermission.cs
- ConnectionPoint.cs
- DynamicILGenerator.cs
- SqlParameterizer.cs
- MethodExpression.cs
- HwndSource.cs
- BulletedList.cs
- ScriptControl.cs
- DynamicMetaObject.cs
- SizeKeyFrameCollection.cs
- WindowsToolbar.cs
- IteratorFilter.cs
- SecondaryIndexDefinition.cs
- HMACSHA384.cs
- ProgressChangedEventArgs.cs
- Lease.cs
- RangeBase.cs
- MimeParameter.cs
- EntityKeyElement.cs
- mediapermission.cs
- TcpAppDomainProtocolHandler.cs
- ExtendedPropertyDescriptor.cs
- ProfilePropertySettingsCollection.cs
- ParagraphResult.cs
- Rect3D.cs
- TokenizerHelper.cs
- NamespaceCollection.cs
- MonthChangedEventArgs.cs
- FixedNode.cs
- SerializationFieldInfo.cs
- ServiceHostFactory.cs
- Wizard.cs
- HttpApplicationStateBase.cs
- SystemSounds.cs
- PageFunction.cs
- ToolStripPanelDesigner.cs
- ServiceDescriptionData.cs
- SafeHGlobalHandleCritical.cs
- NavigationHelper.cs
- Membership.cs
- UtilityExtension.cs
- Speller.cs
- ToolboxComponentsCreatedEventArgs.cs
- PropertyTabChangedEvent.cs
- SecurityKeyType.cs
- HttpCookiesSection.cs
- SamlEvidence.cs
- NameValueFileSectionHandler.cs
- UntypedNullExpression.cs
- XmlSchemaInfo.cs
- StyleSheet.cs
- XomlCompiler.cs
- HMACSHA384.cs
- AttributeCollection.cs
- MenuAdapter.cs
- HiddenFieldPageStatePersister.cs
- DataSpaceManager.cs
- GregorianCalendarHelper.cs
- CookielessData.cs
- WebPartEventArgs.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- TrustSection.cs
- XmlValidatingReaderImpl.cs
- MonikerSyntaxException.cs
- Stopwatch.cs
- TraceUtility.cs
- TypeElement.cs
- ConfigurationProperty.cs
- Random.cs
- RawUIStateInputReport.cs
- ToolTip.cs
- FrameSecurityDescriptor.cs