Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UnauthorizedWebPart.cs
- HandlerFactoryCache.cs
- LookupTables.cs
- ObjectItemCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- Translator.cs
- ObjectDataSourceDisposingEventArgs.cs
- SqlNodeAnnotation.cs
- ClientBuildManager.cs
- ObjectDataSourceChooseTypePanel.cs
- GPStream.cs
- TailPinnedEventArgs.cs
- DefaultProxySection.cs
- DiscreteKeyFrames.cs
- CopyAttributesAction.cs
- BasePattern.cs
- Literal.cs
- XmlSiteMapProvider.cs
- ByteStream.cs
- LinkLabel.cs
- METAHEADER.cs
- PointAnimationUsingPath.cs
- XmlStreamStore.cs
- HttpResponseInternalWrapper.cs
- ReadOnlyActivityGlyph.cs
- CommandManager.cs
- ObjectListSelectEventArgs.cs
- BindingExpressionBase.cs
- LogicalExpr.cs
- BaseCodeDomTreeGenerator.cs
- xamlnodes.cs
- InkCanvasSelectionAdorner.cs
- GridView.cs
- CombinedGeometry.cs
- FolderNameEditor.cs
- WindowsGraphics.cs
- XmlHierarchicalDataSourceView.cs
- Transform3D.cs
- XmlStreamNodeWriter.cs
- NavigationPropertyEmitter.cs
- AtomContentProperty.cs
- Interlocked.cs
- TextBoxBase.cs
- DescendentsWalkerBase.cs
- MemoryMappedViewStream.cs
- DataServiceConfiguration.cs
- CompilerGlobalScopeAttribute.cs
- LassoHelper.cs
- DataRelation.cs
- DataBindingExpressionBuilder.cs
- IdentitySection.cs
- CLRBindingWorker.cs
- Point3DAnimationUsingKeyFrames.cs
- XsltCompileContext.cs
- HostVisual.cs
- ProcessStartInfo.cs
- TraversalRequest.cs
- SqlMethods.cs
- RbTree.cs
- WindowClosedEventArgs.cs
- DependencyPropertyKey.cs
- InkCanvasFeedbackAdorner.cs
- SecurityMode.cs
- Attachment.cs
- FixedSOMPageConstructor.cs
- DataPointer.cs
- SafeRightsManagementQueryHandle.cs
- XmlAtomicValue.cs
- Processor.cs
- RewritingPass.cs
- EntityParameter.cs
- Permission.cs
- CodeComment.cs
- SingleKeyFrameCollection.cs
- ListDictionary.cs
- tooltip.cs
- AssemblyAttributes.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlCDATASection.cs
- DesignerDataColumn.cs
- SystemIPGlobalStatistics.cs
- XhtmlBasicPhoneCallAdapter.cs
- X509ChainPolicy.cs
- UnsafeNativeMethods.cs
- SessionEndedEventArgs.cs
- FileDataSourceCache.cs
- TraceSection.cs
- Operand.cs
- NameValueSectionHandler.cs
- MailDefinition.cs
- BinaryHeap.cs
- PostBackTrigger.cs
- XmlCompatibilityReader.cs
- DocumentApplicationJournalEntry.cs
- SocketInformation.cs
- PageHandlerFactory.cs
- ExpanderAutomationPeer.cs
- DataService.cs
- DataGridViewRowPrePaintEventArgs.cs
- OptimizedTemplateContent.cs