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
- SafeFileHandle.cs
- TcpHostedTransportConfiguration.cs
- ReaderContextStackData.cs
- ParameterCollection.cs
- ConfigXmlDocument.cs
- ObjectStorage.cs
- HandlerFactoryWrapper.cs
- TransactionInterop.cs
- Form.cs
- AnnotationResourceChangedEventArgs.cs
- DataServiceExpressionVisitor.cs
- FtpWebResponse.cs
- HeaderedContentControl.cs
- XmlCharacterData.cs
- Encoder.cs
- XmlImplementation.cs
- SoapCodeExporter.cs
- UnsafeNativeMethodsPenimc.cs
- SiteMapHierarchicalDataSourceView.cs
- MetadataArtifactLoader.cs
- DynamicRenderer.cs
- Configuration.cs
- ToolStripItemTextRenderEventArgs.cs
- ConstNode.cs
- NamedElement.cs
- DivideByZeroException.cs
- StorageInfo.cs
- ConvertEvent.cs
- TextContainer.cs
- HashJoinQueryOperatorEnumerator.cs
- ParseHttpDate.cs
- ProfileService.cs
- ProcessThread.cs
- TypeForwardedToAttribute.cs
- WinOEToolBoxItem.cs
- ScriptServiceAttribute.cs
- EventManager.cs
- manifestimages.cs
- StretchValidation.cs
- ForceCopyBuildProvider.cs
- basevalidator.cs
- SystemIPv6InterfaceProperties.cs
- AccessorTable.cs
- SiteMapPath.cs
- LabelAutomationPeer.cs
- ExceptionList.cs
- DataMemberFieldConverter.cs
- SerializableAttribute.cs
- PathFigureCollection.cs
- SqlProviderManifest.cs
- FixedSOMTextRun.cs
- DocumentViewerConstants.cs
- WebPartMinimizeVerb.cs
- TableStyle.cs
- WebServiceClientProxyGenerator.cs
- DataGridSortCommandEventArgs.cs
- GeneratedCodeAttribute.cs
- DataGridViewComboBoxCell.cs
- InternalPermissions.cs
- ZoneLinkButton.cs
- PersianCalendar.cs
- PrivacyNoticeBindingElementImporter.cs
- StaticResourceExtension.cs
- AuthenticatingEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- SrgsDocumentParser.cs
- RenderData.cs
- DataRowComparer.cs
- SelectiveScrollingGrid.cs
- RtfControls.cs
- Socket.cs
- Internal.cs
- ObjectStateManager.cs
- documentsequencetextcontainer.cs
- Rotation3DAnimationBase.cs
- MobileControlBuilder.cs
- ColumnMap.cs
- IdnMapping.cs
- ConnectionPointConverter.cs
- RunClient.cs
- IConvertible.cs
- ReachPageContentSerializerAsync.cs
- XsltException.cs
- RoleService.cs
- SqlRemoveConstantOrderBy.cs
- PersonalizationProvider.cs
- OneOfScalarConst.cs
- NumericUpDownAcceleration.cs
- SafeRsaProviderHandle.cs
- FileInfo.cs
- XmlArrayItemAttributes.cs
- ThemeDictionaryExtension.cs
- DataControlLinkButton.cs
- EntityModelBuildProvider.cs
- DynamicQueryStringParameter.cs
- SmtpNtlmAuthenticationModule.cs
- SafeNativeMethods.cs
- RegexReplacement.cs
- DelayDesigner.cs
- AssociatedControlConverter.cs