Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CLRBindingWorker.cs
- DependencyObjectPropertyDescriptor.cs
- ContextMenuAutomationPeer.cs
- XmlSchemaChoice.cs
- ForceCopyBuildProvider.cs
- HtmlDocument.cs
- FrameworkContentElement.cs
- VarRemapper.cs
- WorkflowApplicationTerminatedException.cs
- SerializationInfoEnumerator.cs
- XmlSchemaNotation.cs
- DefinitionBase.cs
- CatalogZoneBase.cs
- DataPagerFieldCommandEventArgs.cs
- PrimitiveSchema.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DetailsViewCommandEventArgs.cs
- MetadataUtilsSmi.cs
- Action.cs
- ControlBuilder.cs
- DrawingContextDrawingContextWalker.cs
- Point3DAnimation.cs
- PolicyLevel.cs
- BindingExpressionUncommonField.cs
- InvalidPrinterException.cs
- CssTextWriter.cs
- ComplexTypeEmitter.cs
- SourceInterpreter.cs
- EventListenerClientSide.cs
- CommonRemoteMemoryBlock.cs
- EventLogTraceListener.cs
- SqlDependencyListener.cs
- _OSSOCK.cs
- KeyBinding.cs
- DiscardableAttribute.cs
- WebPartTransformerCollection.cs
- DataServiceBehavior.cs
- DesignerLinkAdapter.cs
- FunctionDefinition.cs
- InheritedPropertyDescriptor.cs
- CounterCreationDataCollection.cs
- CqlParser.cs
- WebPartCancelEventArgs.cs
- InputScopeAttribute.cs
- SafeThemeHandle.cs
- RuntimeHelpers.cs
- PtsHelper.cs
- TypeElementCollection.cs
- QilExpression.cs
- WebPartVerbsEventArgs.cs
- HotSpotCollection.cs
- BrushConverter.cs
- BuiltInPermissionSets.cs
- SurrogateSelector.cs
- SystemBrushes.cs
- SqlProfileProvider.cs
- ToolStripComboBox.cs
- DelimitedListTraceListener.cs
- PointAnimationUsingKeyFrames.cs
- TextTreeUndo.cs
- ManagedFilter.cs
- ActionItem.cs
- SqlDataRecord.cs
- DataContractSerializerSection.cs
- DLinqDataModelProvider.cs
- XmlCharCheckingReader.cs
- ToolboxBitmapAttribute.cs
- columnmapkeybuilder.cs
- ReceiveActivity.cs
- List.cs
- NamespaceDecl.cs
- RequestQueryParser.cs
- TransactionalPackage.cs
- ImageCodecInfo.cs
- Executor.cs
- MaskInputRejectedEventArgs.cs
- PingOptions.cs
- Camera.cs
- TextEditorThreadLocalStore.cs
- XmlSignificantWhitespace.cs
- FileDialog_Vista.cs
- BitmapCodecInfo.cs
- EndPoint.cs
- WindowsSysHeader.cs
- PagedDataSource.cs
- PrinterResolution.cs
- AnimatedTypeHelpers.cs
- PixelShader.cs
- OleDbTransaction.cs
- BamlCollectionHolder.cs
- App.cs
- ConfigurationLockCollection.cs
- DictationGrammar.cs
- NameValueConfigurationCollection.cs
- Thickness.cs
- DataObjectAttribute.cs
- ControlTemplate.cs
- ProcessModelInfo.cs
- StylusPointPropertyId.cs
- VirtualDirectoryMappingCollection.cs