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
- MouseCaptureWithinProperty.cs
- CultureTableRecord.cs
- CaseInsensitiveOrdinalStringComparer.cs
- httpserverutility.cs
- ScrollChrome.cs
- PageFunction.cs
- SBCSCodePageEncoding.cs
- UrlMappingCollection.cs
- xsdvalidator.cs
- ObjectRef.cs
- TextShapeableCharacters.cs
- ToolStripDropDownClosedEventArgs.cs
- GroupItemAutomationPeer.cs
- DocumentViewer.cs
- DrawingContext.cs
- IgnoreFileBuildProvider.cs
- ResolveDuplexCD1AsyncResult.cs
- EventDrivenDesigner.cs
- DebugHandleTracker.cs
- QueryExtender.cs
- RawStylusInputCustomDataList.cs
- RowCache.cs
- WinFormsSecurity.cs
- ModuleConfigurationInfo.cs
- InvalidComObjectException.cs
- WebSysDescriptionAttribute.cs
- ConfigurationValidatorAttribute.cs
- Stack.cs
- DataGridTable.cs
- WebServiceFault.cs
- DbConnectionPoolOptions.cs
- COM2TypeInfoProcessor.cs
- TableProviderWrapper.cs
- XPathExpr.cs
- Trigger.cs
- SmiXetterAccessMap.cs
- TabletDevice.cs
- WindowsFormsLinkLabel.cs
- SqlTopReducer.cs
- AvtEvent.cs
- VisualBasicExpressionConverter.cs
- ResetableIterator.cs
- XmlTextReaderImplHelpers.cs
- IdleTimeoutMonitor.cs
- SingleAnimation.cs
- FileDialogCustomPlace.cs
- Internal.cs
- EntitySet.cs
- DataServiceQueryException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PrivateFontCollection.cs
- TextEditorParagraphs.cs
- ExternalFile.cs
- DynamicUpdateCommand.cs
- ExcludeFromCodeCoverageAttribute.cs
- VideoDrawing.cs
- PersistenceIOParticipant.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MetadataArtifactLoaderFile.cs
- XPathBinder.cs
- initElementDictionary.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Operators.cs
- PromptBuilder.cs
- PrinterResolution.cs
- BatchServiceHost.cs
- MasterPageBuildProvider.cs
- CompositeActivityMarkupSerializer.cs
- ChtmlTextWriter.cs
- TextBoxLine.cs
- DrawingImage.cs
- DataServiceProcessingPipelineEventArgs.cs
- PersonalizableTypeEntry.cs
- MD5CryptoServiceProvider.cs
- ConfigXmlElement.cs
- XmlDataContract.cs
- ServicesExceptionNotHandledEventArgs.cs
- X509CertificateCollection.cs
- Equal.cs
- BackgroundWorker.cs
- Item.cs
- BooleanConverter.cs
- OleDbConnectionInternal.cs
- StreamWriter.cs
- CFStream.cs
- OleDbConnectionInternal.cs
- FormViewPagerRow.cs
- ListViewDeleteEventArgs.cs
- UrlUtility.cs
- Automation.cs
- LoginView.cs
- OutputCacheSettings.cs
- cookie.cs
- ToolBarPanel.cs
- OleDbConnection.cs
- MemberCollection.cs
- _TLSstream.cs
- recordstatefactory.cs
- WorkflowShape.cs
- ReaderWriterLockWrapper.cs