Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServicePointManagerElement.cs
- Crc32.cs
- XmlValidatingReader.cs
- CookieParameter.cs
- TextDecorationCollection.cs
- MaterialCollection.cs
- SqlTypeConverter.cs
- XamlTypeWithExplicitNamespace.cs
- HostedHttpTransportManager.cs
- LinkClickEvent.cs
- TimerEventSubscription.cs
- FormClosingEvent.cs
- PreloadedPackages.cs
- PointLightBase.cs
- FrameworkTemplate.cs
- SQLResource.cs
- ReceiveDesigner.xaml.cs
- TreeView.cs
- MorphHelper.cs
- CodeDefaultValueExpression.cs
- ObjectNavigationPropertyMapping.cs
- ContextItem.cs
- ObjectManager.cs
- SpellerStatusTable.cs
- SoapAttributeOverrides.cs
- Interlocked.cs
- DigestTraceRecordHelper.cs
- ProxyWebPartManager.cs
- SamlAction.cs
- InkCanvas.cs
- ProviderSettingsCollection.cs
- MetabaseReader.cs
- XmlBaseWriter.cs
- ConversionHelper.cs
- JsonByteArrayDataContract.cs
- AuthenticationSection.cs
- DataBoundControlAdapter.cs
- SoapMessage.cs
- GenericXmlSecurityToken.cs
- GradientSpreadMethodValidation.cs
- HtmlElementErrorEventArgs.cs
- ValidatedMobileControlConverter.cs
- SafeRightsManagementPubHandle.cs
- XmlWrappingWriter.cs
- Parameter.cs
- FormsAuthenticationUser.cs
- StreamBodyWriter.cs
- DeviceSpecificChoiceCollection.cs
- TimeEnumHelper.cs
- serverconfig.cs
- AssemblyName.cs
- ToolStripStatusLabel.cs
- FontStretches.cs
- NameNode.cs
- MemoryMappedView.cs
- Cast.cs
- SqlReferenceCollection.cs
- ObjectHandle.cs
- XamlHostingConfiguration.cs
- DataServiceRequestArgs.cs
- PrimitiveXmlSerializers.cs
- BitmapCodecInfo.cs
- XmlDataSource.cs
- XmlSchemaInclude.cs
- StringAnimationUsingKeyFrames.cs
- SetUserPreferenceRequest.cs
- BypassElement.cs
- TagPrefixAttribute.cs
- Point3DCollection.cs
- ObjectMemberMapping.cs
- FileDetails.cs
- GridViewPageEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- Knowncolors.cs
- AtlasWeb.Designer.cs
- ExpressionBuilderCollection.cs
- TransformerTypeCollection.cs
- ClickablePoint.cs
- DirectoryLocalQuery.cs
- ObjectStateFormatter.cs
- XmlWriterDelegator.cs
- TreeNodeBinding.cs
- ToolStripItemRenderEventArgs.cs
- ToolConsole.cs
- XmlNamespaceManager.cs
- ReferencedType.cs
- ReferencedAssembly.cs
- XmlWrappingReader.cs
- CodeVariableReferenceExpression.cs
- _HTTPDateParse.cs
- SafeThreadHandle.cs
- SafeThreadHandle.cs
- GenericTypeParameterBuilder.cs
- CreateParams.cs
- UnsafeNativeMethods.cs
- PrintingPermission.cs
- connectionpool.cs
- ListViewItem.cs
- SqlDataAdapter.cs
- PagerSettings.cs