Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / SafeNativeMethods.cs / 1305376 / 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
- FontDriver.cs
- CommandBindingCollection.cs
- NumericUpDownAcceleration.cs
- PerformanceCounter.cs
- ConfigurationStrings.cs
- SynchronizationContext.cs
- MSG.cs
- ListItemCollection.cs
- DataObjectEventArgs.cs
- Context.cs
- SqlCaseSimplifier.cs
- WindowsFormsSectionHandler.cs
- DataControlExtensions.cs
- TableLayout.cs
- UserControlBuildProvider.cs
- FormCollection.cs
- SqlCaseSimplifier.cs
- EventMetadata.cs
- AsyncPostBackTrigger.cs
- Geometry.cs
- DateTimeConverter.cs
- TrackingProfileDeserializationException.cs
- XPathBinder.cs
- TimeManager.cs
- NumericUpDownAcceleration.cs
- Emitter.cs
- _NtlmClient.cs
- ObjectResult.cs
- XmlNodeComparer.cs
- DataException.cs
- HashSetDebugView.cs
- AnnotationStore.cs
- ObjectViewListener.cs
- EntityType.cs
- SplitterCancelEvent.cs
- InvokeGenerator.cs
- StyleSheet.cs
- StreamUpgradeBindingElement.cs
- SamlSerializer.cs
- DesignerAdapterUtil.cs
- QueryRewriter.cs
- CompositeControlDesigner.cs
- PropertyInformation.cs
- StorageComplexTypeMapping.cs
- StyleCollection.cs
- CopyOnWriteList.cs
- MailSettingsSection.cs
- TypeUtils.cs
- WebPartMenuStyle.cs
- XmlQueryStaticData.cs
- NestedContainer.cs
- ButtonColumn.cs
- ToolStripDropDown.cs
- SamlAdvice.cs
- AssemblyHelper.cs
- WindowsIPAddress.cs
- AppSettingsSection.cs
- BindingsCollection.cs
- ADMembershipUser.cs
- ManifestResourceInfo.cs
- ReferenceAssemblyAttribute.cs
- DependentList.cs
- NullableDoubleSumAggregationOperator.cs
- TransactedReceiveScope.cs
- Native.cs
- DataGridViewTextBoxEditingControl.cs
- XamlBrushSerializer.cs
- DiscriminatorMap.cs
- FileReader.cs
- _NetRes.cs
- ListViewItem.cs
- RowToParametersTransformer.cs
- ClaimSet.cs
- MsmqAppDomainProtocolHandler.cs
- CapiHashAlgorithm.cs
- FamilyMap.cs
- MouseGestureConverter.cs
- FixedSOMGroup.cs
- CachedBitmap.cs
- SoapObjectReader.cs
- Columns.cs
- MimePart.cs
- HtmlTernaryTree.cs
- DragEvent.cs
- EncryptionUtility.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SpellCheck.cs
- DesignerAutoFormatCollection.cs
- PseudoWebRequest.cs
- ViewSimplifier.cs
- ArcSegment.cs
- MappingSource.cs
- PeerHopCountAttribute.cs
- TextTreeTextElementNode.cs
- WebServiceReceive.cs
- BuildResultCache.cs
- ViewStateException.cs
- MediaElementAutomationPeer.cs
- SafeNativeMemoryHandle.cs
- Pool.cs