Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FlowLayoutPanel.cs
- OdbcCommandBuilder.cs
- TreeNodeStyleCollection.cs
- GraphicsContainer.cs
- WebScriptEnablingElement.cs
- DomNameTable.cs
- WebServiceErrorEvent.cs
- ArrayList.cs
- TextDocumentView.cs
- CFStream.cs
- PanelStyle.cs
- ConnectionManagementSection.cs
- JulianCalendar.cs
- Rectangle.cs
- KeyedHashAlgorithm.cs
- bindurihelper.cs
- DataGridViewTextBoxCell.cs
- Parser.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- KeyValuePair.cs
- AutoGeneratedField.cs
- CqlWriter.cs
- FamilyMapCollection.cs
- RealProxy.cs
- HttpClientCertificate.cs
- BuildProvider.cs
- InstanceKeyNotReadyException.cs
- SerializableAttribute.cs
- TreeNodeCollection.cs
- NativeObjectSecurity.cs
- UInt64Storage.cs
- WindowsScrollBar.cs
- XPathNodeIterator.cs
- SoapObjectWriter.cs
- bindurihelper.cs
- SingleStorage.cs
- PageContentCollection.cs
- CommonXSendMessage.cs
- DiagnosticsConfigurationHandler.cs
- TextRenderer.cs
- SecurityTokenException.cs
- ConnectionManagementElement.cs
- XPathNodeIterator.cs
- BitmapEffectGeneralTransform.cs
- ChameleonKey.cs
- TextParaLineResult.cs
- SystemColors.cs
- WinEventHandler.cs
- InlineObject.cs
- XamlHostingSectionGroup.cs
- oledbconnectionstring.cs
- CalendarDateChangedEventArgs.cs
- ColorAnimationBase.cs
- PropertyInfo.cs
- ClusterRegistryConfigurationProvider.cs
- TemplateComponentConnector.cs
- DelegateTypeInfo.cs
- ApplicationManager.cs
- SqlGenerator.cs
- ECDiffieHellmanPublicKey.cs
- PrintingPermission.cs
- TrustLevelCollection.cs
- NativeMethods.cs
- safex509handles.cs
- ConfigurationStrings.cs
- AppDomainEvidenceFactory.cs
- Control.cs
- SessionIDManager.cs
- ItemContainerGenerator.cs
- Win32KeyboardDevice.cs
- FacetValueContainer.cs
- XmlAttributes.cs
- EdmToObjectNamespaceMap.cs
- TextFormattingConverter.cs
- SqlDependencyUtils.cs
- RoutedEventHandlerInfo.cs
- TypeDescriptor.cs
- PageHandlerFactory.cs
- ClientUrlResolverWrapper.cs
- StaticFileHandler.cs
- BindingCollection.cs
- ToolbarAUtomationPeer.cs
- MsmqPoisonMessageException.cs
- NameSpaceExtractor.cs
- FamilyTypeface.cs
- SmtpFailedRecipientsException.cs
- AnimationClock.cs
- BinaryFormatterWriter.cs
- LineServices.cs
- TreeNodeEventArgs.cs
- VisualTarget.cs
- TaiwanLunisolarCalendar.cs
- LayoutEvent.cs
- Serialization.cs
- PathFigureCollection.cs
- OleDbEnumerator.cs
- SecurityIdentifierElementCollection.cs
- DocumentSequenceHighlightLayer.cs
- NominalTypeEliminator.cs
- TextTreeFixupNode.cs