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
- Stroke2.cs
- EmbossBitmapEffect.cs
- HashMembershipCondition.cs
- InstallerTypeAttribute.cs
- Int32CollectionValueSerializer.cs
- COM2Enum.cs
- WindowsSolidBrush.cs
- WindowsPen.cs
- CachedBitmap.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- VariantWrapper.cs
- TextSerializer.cs
- SQLDecimal.cs
- Win32KeyboardDevice.cs
- ResourceManagerWrapper.cs
- RSACryptoServiceProvider.cs
- Parameter.cs
- DataGridPageChangedEventArgs.cs
- invalidudtexception.cs
- ByeMessageCD1.cs
- NativeMethods.cs
- CroppedBitmap.cs
- ServiceModelActivity.cs
- BasicDesignerLoader.cs
- CircleEase.cs
- DataException.cs
- DragDeltaEventArgs.cs
- LayoutTable.cs
- ToolZone.cs
- DocumentScope.cs
- File.cs
- LinqExpressionNormalizer.cs
- WorkflowOperationBehavior.cs
- LogLogRecordHeader.cs
- VerificationAttribute.cs
- ObjectConverter.cs
- Executor.cs
- TextReader.cs
- Vector.cs
- TrustManagerMoreInformation.cs
- WebPartCancelEventArgs.cs
- Cursors.cs
- ToolStripItemClickedEventArgs.cs
- ManagementException.cs
- DbConnectionFactory.cs
- SqlTrackingWorkflowInstance.cs
- ProfileGroupSettings.cs
- XhtmlTextWriter.cs
- ImageMap.cs
- SelectionWordBreaker.cs
- CTreeGenerator.cs
- WorkflowPersistenceContext.cs
- LocalIdKeyIdentifierClause.cs
- GlyphCollection.cs
- FontNamesConverter.cs
- DataControlField.cs
- DataGridPageChangedEventArgs.cs
- StylusButtonCollection.cs
- HtmlToClrEventProxy.cs
- ParserContext.cs
- TempFiles.cs
- WindowClosedEventArgs.cs
- SecurityUtils.cs
- WorkflowDebuggerSteppingAttribute.cs
- ProfileInfo.cs
- TriState.cs
- Triangle.cs
- CalculatedColumn.cs
- NamespaceQuery.cs
- BrushConverter.cs
- CFStream.cs
- SafeArrayRankMismatchException.cs
- QuadraticBezierSegment.cs
- NumericUpDown.cs
- ContextItem.cs
- AlphabetConverter.cs
- ListViewInsertionMark.cs
- FreezableDefaultValueFactory.cs
- LinqTreeNodeEvaluator.cs
- SoapHeaders.cs
- ServiceManager.cs
- TreeView.cs
- PolyBezierSegment.cs
- KnownTypeHelper.cs
- PropertyDescriptorGridEntry.cs
- TextParagraphProperties.cs
- InputMethodStateChangeEventArgs.cs
- SqlDesignerDataSourceView.cs
- MatrixAnimationUsingPath.cs
- ItemCheckedEvent.cs
- SkinIDTypeConverter.cs
- AuthenticationServiceManager.cs
- AutomationProperty.cs
- PowerStatus.cs
- StateInitialization.cs
- XmlAnyElementAttributes.cs
- SqlDataRecord.cs
- PropertyInformationCollection.cs
- EntityDataSourceView.cs
- arabicshape.cs