Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- StreamGeometry.cs
- MetadataItem.cs
- DesignerActionTextItem.cs
- ConstructorBuilder.cs
- ValueQuery.cs
- SrgsGrammar.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XamlPointCollectionSerializer.cs
- DataGridHeaderBorder.cs
- UserControlBuildProvider.cs
- CodePageEncoding.cs
- BasePropertyDescriptor.cs
- GridLength.cs
- ImageConverter.cs
- InsufficientMemoryException.cs
- BindableTemplateBuilder.cs
- AuthenticationManager.cs
- CalendarTable.cs
- TextRangeProviderWrapper.cs
- PeerChannelFactory.cs
- UnmanagedMemoryStream.cs
- HatchBrush.cs
- Axis.cs
- SizeAnimationUsingKeyFrames.cs
- DataPagerFieldCommandEventArgs.cs
- RequestResizeEvent.cs
- HttpProcessUtility.cs
- RtfNavigator.cs
- GroupBox.cs
- EntryIndex.cs
- TextEditorTables.cs
- UseLicense.cs
- ParserOptions.cs
- XmlNamespaceMapping.cs
- ConfigurationManagerHelper.cs
- NamespaceExpr.cs
- EventToken.cs
- MultipleViewProviderWrapper.cs
- EncryptedKey.cs
- HostProtectionException.cs
- ThemeDirectoryCompiler.cs
- Exception.cs
- ScopedMessagePartSpecification.cs
- basenumberconverter.cs
- GroupBox.cs
- XmlDigitalSignatureProcessor.cs
- BindingContext.cs
- ApplicationFileParser.cs
- WindowsIdentity.cs
- FileStream.cs
- VisualTreeUtils.cs
- Trace.cs
- CqlParserHelpers.cs
- DoubleCollectionConverter.cs
- wgx_commands.cs
- FactoryMaker.cs
- StylusTip.cs
- WsdlParser.cs
- EnvelopedPkcs7.cs
- IPAddressCollection.cs
- XmlLanguageConverter.cs
- DoubleIndependentAnimationStorage.cs
- _LocalDataStore.cs
- DynamicResourceExtensionConverter.cs
- MasterPage.cs
- Size3DConverter.cs
- HwndMouseInputProvider.cs
- DataGridViewRow.cs
- SourceFileBuildProvider.cs
- UserInitiatedNavigationPermission.cs
- Boolean.cs
- UInt16Storage.cs
- HideDisabledControlAdapter.cs
- BatchWriter.cs
- DesignerSerializerAttribute.cs
- XmlBindingWorker.cs
- ContentTextAutomationPeer.cs
- TextBox.cs
- GlobalizationSection.cs
- DataGridViewUtilities.cs
- EntityConnectionStringBuilder.cs
- AnnotationComponentManager.cs
- FilterEventArgs.cs
- BamlBinaryWriter.cs
- COM2PictureConverter.cs
- SByte.cs
- XmlDataLoader.cs
- DynamicArgumentDesigner.xaml.cs
- AdRotator.cs
- CodeChecksumPragma.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NamespaceQuery.cs
- RelationshipEndMember.cs
- RawStylusInputCustomDataList.cs
- _SSPISessionCache.cs
- SchemaImporterExtension.cs
- NativeMethods.cs
- TextEffectCollection.cs
- ObjectViewListener.cs
- SerializationSectionGroup.cs