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
- OleDbReferenceCollection.cs
- Switch.cs
- DesignTimeTemplateParser.cs
- DropDownButton.cs
- ActiveXSite.cs
- ActivityStateRecord.cs
- CorruptingExceptionCommon.cs
- ExceptionUtil.cs
- EventLogConfiguration.cs
- ObjectListItem.cs
- EditingContext.cs
- ErasingStroke.cs
- ToolStripHighContrastRenderer.cs
- WaitHandleCannotBeOpenedException.cs
- ToolboxService.cs
- RightsManagementPermission.cs
- ClientSettingsSection.cs
- OracleParameter.cs
- StandardBindingReliableSessionElement.cs
- MulticastOption.cs
- IfAction.cs
- ZipIOExtraFieldElement.cs
- RuleRefElement.cs
- WindowsFont.cs
- DrawingAttributes.cs
- SHA512Managed.cs
- PolyLineSegment.cs
- CompilerError.cs
- XmlSchemaCollection.cs
- DBBindings.cs
- SystemUnicastIPAddressInformation.cs
- UrlAuthFailedErrorFormatter.cs
- ParentQuery.cs
- SrgsText.cs
- StringCollectionEditor.cs
- ComNativeDescriptor.cs
- DrawingGroupDrawingContext.cs
- ObjectDataSource.cs
- ProviderConnectionPoint.cs
- securestring.cs
- TcpPortSharing.cs
- TextSpanModifier.cs
- BookmarkEventArgs.cs
- StrongName.cs
- SqlProviderManifest.cs
- SweepDirectionValidation.cs
- CharKeyFrameCollection.cs
- regiisutil.cs
- SystemPens.cs
- CultureSpecificCharacterBufferRange.cs
- SqlDataRecord.cs
- ReadOnlyCollection.cs
- Helpers.cs
- Animatable.cs
- RegexCompiler.cs
- WebPartExportVerb.cs
- OdbcConnectionString.cs
- BoundsDrawingContextWalker.cs
- Base64Decoder.cs
- EventData.cs
- AdornerLayer.cs
- IPEndPoint.cs
- basecomparevalidator.cs
- DataTemplateSelector.cs
- XPathArrayIterator.cs
- Listen.cs
- MeasureItemEvent.cs
- TextDecorationUnitValidation.cs
- DataListItemCollection.cs
- StringConcat.cs
- KeyTimeConverter.cs
- Vector3DValueSerializer.cs
- iisPickupDirectory.cs
- UInt16Storage.cs
- ChildChangedEventArgs.cs
- EditorAttribute.cs
- DateTimeStorage.cs
- ChangeTracker.cs
- HtmlTableRow.cs
- AccessedThroughPropertyAttribute.cs
- CompatibleIComparer.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PartialToken.cs
- UntrustedRecipientException.cs
- CfgArc.cs
- QueueProcessor.cs
- GridViewRowPresenterBase.cs
- UInt64Storage.cs
- JsonServiceDocumentSerializer.cs
- GetWinFXPath.cs
- xmlsaver.cs
- SqlTransaction.cs
- SafeNativeMethods.cs
- CodeTypeConstructor.cs
- SynchronizationContext.cs
- HttpRuntimeSection.cs
- ListControl.cs
- WebServiceEnumData.cs
- ReadOnlyCollectionBuilder.cs
- EpmContentSerializer.cs