Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UrlRoutingHandler.cs
- FileVersionInfo.cs
- ToolStripDropTargetManager.cs
- CommandEventArgs.cs
- SqlGenericUtil.cs
- TCEAdapterGenerator.cs
- PartialCachingControl.cs
- ButtonBase.cs
- BinaryObjectInfo.cs
- SessionSwitchEventArgs.cs
- ImmutableDispatchRuntime.cs
- ColorAnimation.cs
- TypeConverterAttribute.cs
- WeakHashtable.cs
- PageAsyncTaskManager.cs
- SqlConnectionString.cs
- TableLayoutStyle.cs
- XmlILStorageConverter.cs
- PrintControllerWithStatusDialog.cs
- BinaryCommonClasses.cs
- ParserContext.cs
- TypefaceMap.cs
- TableCellCollection.cs
- EmbeddedMailObject.cs
- ReflectionHelper.cs
- BrowserCapabilitiesCodeGenerator.cs
- StandardTransformFactory.cs
- BoolExpression.cs
- hresults.cs
- SuppressIldasmAttribute.cs
- TypeConverterHelper.cs
- TabControl.cs
- Message.cs
- SQLResource.cs
- StrokeSerializer.cs
- CompilationLock.cs
- DataGridViewCellEventArgs.cs
- RenameRuleObjectDialog.Designer.cs
- ScriptRef.cs
- StrongTypingException.cs
- ObsoleteAttribute.cs
- FrameworkElementAutomationPeer.cs
- FigureParagraph.cs
- ConfigurationPropertyCollection.cs
- FixUp.cs
- ProfilePropertySettingsCollection.cs
- SelectingProviderEventArgs.cs
- Input.cs
- Typeface.cs
- GeneralTransform3DGroup.cs
- ConfigurationStrings.cs
- ShaperBuffers.cs
- ArraySubsetEnumerator.cs
- ExpressionList.cs
- WindowManager.cs
- XamlFigureLengthSerializer.cs
- XmlSchemaGroupRef.cs
- SortExpressionBuilder.cs
- CapabilitiesState.cs
- XmlUrlResolver.cs
- ModelVisual3D.cs
- CellIdBoolean.cs
- PolyLineSegment.cs
- AssociationSetMetadata.cs
- FirstMatchCodeGroup.cs
- RequestCache.cs
- _ShellExpression.cs
- CustomValidator.cs
- ACL.cs
- ValidationResult.cs
- _ChunkParse.cs
- SortedList.cs
- ClientFormsIdentity.cs
- CrossAppDomainChannel.cs
- ObjectDataSourceDisposingEventArgs.cs
- Header.cs
- TextProperties.cs
- Soap.cs
- Buffer.cs
- JpegBitmapEncoder.cs
- CriticalFinalizerObject.cs
- TextModifierScope.cs
- PropertyPathWorker.cs
- ScrollItemProviderWrapper.cs
- WebExceptionStatus.cs
- CacheAxisQuery.cs
- XsltException.cs
- Single.cs
- MenuBase.cs
- ElementsClipboardData.cs
- SaveFileDialog.cs
- QueryTreeBuilder.cs
- IList.cs
- XmlValidatingReaderImpl.cs
- WizardForm.cs
- VisualBrush.cs
- NestedContainer.cs
- CellTreeSimplifier.cs
- PathTooLongException.cs
- FirstMatchCodeGroup.cs