Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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
- OleDbException.cs
- DateTimeUtil.cs
- StdValidatorsAndConverters.cs
- ViewStateException.cs
- UnitySerializationHolder.cs
- WmlListAdapter.cs
- ExceptionTrace.cs
- OleDbCommandBuilder.cs
- TableLayoutSettings.cs
- XmlReaderSettings.cs
- DataTableReader.cs
- VerbConverter.cs
- NavigationEventArgs.cs
- MimeFormImporter.cs
- LambdaCompiler.ControlFlow.cs
- EntityContainerEntitySet.cs
- XPathAncestorIterator.cs
- TemplateEditingFrame.cs
- Stylus.cs
- TemplateXamlTreeBuilder.cs
- LinkedResource.cs
- ErrorInfoXmlDocument.cs
- ExpressionConverter.cs
- XmlSignatureManifest.cs
- UIServiceHelper.cs
- Transform.cs
- DBDataPermissionAttribute.cs
- MessageDroppedTraceRecord.cs
- WindowInteractionStateTracker.cs
- EntityDataSourceReferenceGroup.cs
- DataGridViewBand.cs
- XmlWrappingWriter.cs
- NamedPipeTransportElement.cs
- SchemaComplexType.cs
- XmlSchemas.cs
- ByteAnimationBase.cs
- ProcessThread.cs
- VectorCollection.cs
- Serializer.cs
- TextEditorSpelling.cs
- IconHelper.cs
- TypeUtil.cs
- Propagator.ExtentPlaceholderCreator.cs
- XmlSchemaAnnotation.cs
- BitSet.cs
- CollectionViewGroupRoot.cs
- DeobfuscatingStream.cs
- PingReply.cs
- mediaeventargs.cs
- LogWriteRestartAreaState.cs
- IODescriptionAttribute.cs
- ProfileEventArgs.cs
- ComponentCodeDomSerializer.cs
- DelegateSerializationHolder.cs
- OutputBuffer.cs
- TransformCryptoHandle.cs
- PageParserFilter.cs
- TextParagraphView.cs
- DocumentApplication.cs
- TextCompositionManager.cs
- TypefaceCollection.cs
- ComPlusInstanceProvider.cs
- DbBuffer.cs
- ButtonBase.cs
- safelinkcollection.cs
- DataGridViewCellConverter.cs
- oledbmetadatacollectionnames.cs
- DoubleConverter.cs
- BinaryObjectInfo.cs
- TileBrush.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlKeywords.cs
- Comparer.cs
- XmlHierarchyData.cs
- NavigatorInput.cs
- WebPartMenuStyle.cs
- PropertyChangedEventArgs.cs
- MulticastIPAddressInformationCollection.cs
- CombinedGeometry.cs
- DesignerExtenders.cs
- Rijndael.cs
- TabPageDesigner.cs
- VisualBrush.cs
- PriorityBindingExpression.cs
- CachedCompositeFamily.cs
- Selector.cs
- MultiTrigger.cs
- Accessible.cs
- LayoutSettings.cs
- ToolStripSplitButton.cs
- Int16AnimationUsingKeyFrames.cs
- ComplexPropertyEntry.cs
- PrimitiveType.cs
- TraceSwitch.cs
- IndexingContentUnit.cs
- SiteOfOriginContainer.cs
- CollectionContainer.cs
- HexParser.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DocobjHost.cs