Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertiesTab.cs
- SafeViewOfFileHandle.cs
- QueueProcessor.cs
- oledbmetadatacolumnnames.cs
- EastAsianLunisolarCalendar.cs
- PeerNodeTraceRecord.cs
- ListViewCancelEventArgs.cs
- _IPv4Address.cs
- X509Certificate.cs
- Switch.cs
- XmlAnyElementAttributes.cs
- WindowsEditBoxRange.cs
- CorrelationValidator.cs
- MessageQueue.cs
- SrgsDocument.cs
- RegistryPermission.cs
- TreeView.cs
- StrongNameUtility.cs
- BaseTransportHeaders.cs
- VScrollProperties.cs
- ImageCodecInfoPrivate.cs
- URLAttribute.cs
- MsmqBindingElementBase.cs
- PageClientProxyGenerator.cs
- Margins.cs
- ToolStripPanelSelectionBehavior.cs
- ChtmlTextBoxAdapter.cs
- HtmlShimManager.cs
- COSERVERINFO.cs
- ListSortDescription.cs
- IdentityHolder.cs
- Size3D.cs
- QuarticEase.cs
- FunctionNode.cs
- ChtmlMobileTextWriter.cs
- DetailsViewInsertedEventArgs.cs
- ObjectItemConventionAssemblyLoader.cs
- DataSourceCacheDurationConverter.cs
- BreakSafeBase.cs
- MultilineStringConverter.cs
- ExtensionElementCollection.cs
- Empty.cs
- InstanceView.cs
- RegisteredExpandoAttribute.cs
- Dynamic.cs
- XmlILOptimizerVisitor.cs
- DataGridViewAccessibleObject.cs
- OpenFileDialog.cs
- DrawingContextWalker.cs
- WebPartConnectionsConnectVerb.cs
- GraphicsPathIterator.cs
- ToolBarOverflowPanel.cs
- XmlKeywords.cs
- CharAnimationBase.cs
- StringComparer.cs
- QilIterator.cs
- SecurityTokenResolver.cs
- MimeImporter.cs
- BasicHttpMessageCredentialType.cs
- DataGridViewElement.cs
- XsltConvert.cs
- Point.cs
- SqlBooleanMismatchVisitor.cs
- Point3DAnimation.cs
- MethodSet.cs
- CachedFontFamily.cs
- ValidationSettings.cs
- AuthenticationManager.cs
- HtmlTableCellCollection.cs
- prompt.cs
- WizardStepCollectionEditor.cs
- EntityDataSourceState.cs
- JapaneseCalendar.cs
- Line.cs
- OleDbParameterCollection.cs
- ReadContentAsBinaryHelper.cs
- TimelineClockCollection.cs
- TTSEngineTypes.cs
- SessionStateSection.cs
- TemplateColumn.cs
- WeakReference.cs
- SpellerError.cs
- ContentWrapperAttribute.cs
- TypeListConverter.cs
- ReflectTypeDescriptionProvider.cs
- MetadataSet.cs
- SqlReorderer.cs
- DetailsViewDeletedEventArgs.cs
- SqlWorkflowPersistenceService.cs
- TemplateKeyConverter.cs
- SmiTypedGetterSetter.cs
- XsdBuilder.cs
- ProfileService.cs
- SpoolingTaskBase.cs
- ArraySegment.cs
- ThicknessAnimationBase.cs
- mongolianshape.cs
- CommonObjectSecurity.cs
- LicenseContext.cs
- LayoutTableCell.cs