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
- CapabilitiesSection.cs
- MsmqOutputSessionChannel.cs
- Classification.cs
- MetaDataInfo.cs
- UnsafeNativeMethods.cs
- FilteredSchemaElementLookUpTable.cs
- Native.cs
- InfoCardArgumentException.cs
- DBDataPermissionAttribute.cs
- ArgumentOutOfRangeException.cs
- DataGridCommandEventArgs.cs
- ListenerAdaptersInstallComponent.cs
- ModelProperty.cs
- AsyncResult.cs
- CommandHelper.cs
- Path.cs
- HttpRequestBase.cs
- LinqDataSourceContextEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- GeneralTransform3DCollection.cs
- PartialArray.cs
- ReadWriteSpinLock.cs
- DataGridTableCollection.cs
- GeometryHitTestResult.cs
- MetadataUtil.cs
- MimeTypeMapper.cs
- RadioButtonAutomationPeer.cs
- TypeSource.cs
- VersionedStream.cs
- GridItemCollection.cs
- Identity.cs
- _AutoWebProxyScriptEngine.cs
- ServiceParser.cs
- DefaultValidator.cs
- SchemaEntity.cs
- HMACSHA1.cs
- AppSecurityManager.cs
- TitleStyle.cs
- TextRunProperties.cs
- InputLanguageCollection.cs
- PolicyImporterElementCollection.cs
- StubHelpers.cs
- coordinator.cs
- IconConverter.cs
- CommonRemoteMemoryBlock.cs
- ToolStripItem.cs
- PaperSize.cs
- RectangleF.cs
- HtmlEmptyTagControlBuilder.cs
- ContentOnlyMessage.cs
- AppLevelCompilationSectionCache.cs
- Funcletizer.cs
- FontStyles.cs
- SchemaTableOptionalColumn.cs
- TreeSet.cs
- ObjectPersistData.cs
- OdbcException.cs
- QuotedPrintableStream.cs
- NamedPipeActivation.cs
- IntPtr.cs
- EventBuilder.cs
- SafeHandles.cs
- BindStream.cs
- BeginEvent.cs
- ConcatQueryOperator.cs
- ExpressionBinding.cs
- DocumentXmlWriter.cs
- AssociationTypeEmitter.cs
- ContractType.cs
- UnknownWrapper.cs
- WebResourceUtil.cs
- PagePropertiesChangingEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- ResolveResponseInfo.cs
- LinqDataSourceEditData.cs
- OdbcError.cs
- ListBindableAttribute.cs
- XmlSerializationGeneratedCode.cs
- ToolBarOverflowPanel.cs
- SelectedCellsCollection.cs
- HashHelper.cs
- StickyNoteAnnotations.cs
- FlowDocumentFormatter.cs
- DataSourceControl.cs
- LabelLiteral.cs
- Helper.cs
- Win32.cs
- WeakHashtable.cs
- PointHitTestResult.cs
- HeaderedContentControl.cs
- FontEmbeddingManager.cs
- EditCommandColumn.cs
- EventLogEntry.cs
- COM2PropertyDescriptor.cs
- PageVisual.cs
- FormViewRow.cs
- Rectangle.cs
- AttachedPropertyMethodSelector.cs
- HierarchicalDataSourceControl.cs
- DrawingBrush.cs