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
- ArraySortHelper.cs
- PartitionResolver.cs
- CreateSequenceResponse.cs
- ResourceSet.cs
- UnsafeNativeMethodsPenimc.cs
- NavigationWindowAutomationPeer.cs
- InternalBufferOverflowException.cs
- ProfileProvider.cs
- HtmlAnchor.cs
- DifferencingCollection.cs
- ContentDisposition.cs
- ExpressionEditorAttribute.cs
- ToolStripRendererSwitcher.cs
- ReadOnlyDictionary.cs
- HttpWebRequest.cs
- Bitmap.cs
- BinaryNode.cs
- ProfilePropertyNameValidator.cs
- QuaternionRotation3D.cs
- JsonReaderDelegator.cs
- ContractHandle.cs
- QueryAccessibilityHelpEvent.cs
- VisualStyleInformation.cs
- GraphicsPath.cs
- XmlSerializerFactory.cs
- LinearGradientBrush.cs
- Control.cs
- MobileControlBuilder.cs
- AncestorChangedEventArgs.cs
- XPathSingletonIterator.cs
- EventEntry.cs
- Column.cs
- Section.cs
- DefaultValidator.cs
- DataServiceCollectionOfT.cs
- DetailsViewInsertEventArgs.cs
- AxHost.cs
- WindowsFormsLinkLabel.cs
- LoginCancelEventArgs.cs
- ObjectDataSource.cs
- BaseDataList.cs
- LocalizedNameDescriptionPair.cs
- Relationship.cs
- PeerPresenceInfo.cs
- IDispatchConstantAttribute.cs
- IgnoreSectionHandler.cs
- IDataContractSurrogate.cs
- AuthenticatedStream.cs
- UIElementPropertyUndoUnit.cs
- documentsequencetextcontainer.cs
- FixedTextView.cs
- MetadataSerializer.cs
- HandleCollector.cs
- TextReader.cs
- DataKeyArray.cs
- ListControlConvertEventArgs.cs
- ColorTranslator.cs
- UTF32Encoding.cs
- ReflectPropertyDescriptor.cs
- ProfileSettingsCollection.cs
- ToolboxItemCollection.cs
- HighContrastHelper.cs
- Ipv6Element.cs
- ImageBrush.cs
- Rijndael.cs
- ComponentRenameEvent.cs
- latinshape.cs
- SynchronousReceiveBehavior.cs
- VersionUtil.cs
- WebPartCatalogAddVerb.cs
- PropertyEmitterBase.cs
- Argument.cs
- ListQueryResults.cs
- TraceHwndHost.cs
- PolyLineSegment.cs
- Color.cs
- UITypeEditor.cs
- ViewBase.cs
- DefaultValidator.cs
- PrimitiveType.cs
- MissingMethodException.cs
- SplitterEvent.cs
- ConstructorNeedsTagAttribute.cs
- Selection.cs
- GPPOINT.cs
- EntityContainerEmitter.cs
- PageContentCollection.cs
- AuthenticationConfig.cs
- webproxy.cs
- CollectionViewGroupInternal.cs
- SafeFileMapViewHandle.cs
- DataGridColumn.cs
- TriState.cs
- BorderGapMaskConverter.cs
- XmlNodeChangedEventArgs.cs
- ScriptingSectionGroup.cs
- WindowsGrip.cs
- CollectionConverter.cs
- GeometryModel3D.cs
- UpDownEvent.cs