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
- Form.cs
- CommonDialog.cs
- X509ChainPolicy.cs
- TextBox.cs
- MimeTypePropertyAttribute.cs
- DataGridViewCellStyle.cs
- MeasurementDCInfo.cs
- DefaultObjectMappingItemCollection.cs
- CustomCategoryAttribute.cs
- NameValueSectionHandler.cs
- filewebrequest.cs
- PageAction.cs
- Descriptor.cs
- invalidudtexception.cs
- FieldTemplateFactory.cs
- TextBoxLine.cs
- MaskDescriptors.cs
- Config.cs
- OutputCacheSettingsSection.cs
- PageHandlerFactory.cs
- StorageComplexTypeMapping.cs
- XmlDataLoader.cs
- WSFederationHttpBindingElement.cs
- HostedTransportConfigurationBase.cs
- XmlNullResolver.cs
- WebPartZoneBase.cs
- EntityTransaction.cs
- MDIClient.cs
- FixedSOMElement.cs
- NamespaceInfo.cs
- EmbeddedMailObjectCollectionEditor.cs
- ColorPalette.cs
- ScriptingProfileServiceSection.cs
- OdbcConnectionFactory.cs
- RecordBuilder.cs
- IntegerValidator.cs
- ByteConverter.cs
- RNGCryptoServiceProvider.cs
- ParallelDesigner.cs
- DefaultMemberAttribute.cs
- AlignmentYValidation.cs
- ObjectListField.cs
- BreakRecordTable.cs
- ZoneLinkButton.cs
- StreamingContext.cs
- SafeProcessHandle.cs
- CodeNamespaceCollection.cs
- ChangeProcessor.cs
- TdsParserStateObject.cs
- CompilerTypeWithParams.cs
- SqlTransaction.cs
- ExtentCqlBlock.cs
- DashStyles.cs
- SerTrace.cs
- Baml2006SchemaContext.cs
- AuditLevel.cs
- Pair.cs
- ToolBar.cs
- BehaviorEditorPart.cs
- CheckBox.cs
- ImportCatalogPart.cs
- SequentialUshortCollection.cs
- ISAPIApplicationHost.cs
- InheritanceContextChangedEventManager.cs
- InternalPermissions.cs
- OracleCommand.cs
- DataGridViewRowHeaderCell.cs
- SequenceRange.cs
- ToolStripOverflowButton.cs
- httpstaticobjectscollection.cs
- StateInitialization.cs
- OperationContractAttribute.cs
- InputBinding.cs
- XslAst.cs
- SQLByte.cs
- AmbientValueAttribute.cs
- NetDataContractSerializer.cs
- HandlerWithFactory.cs
- BackEase.cs
- CommandPlan.cs
- ConstNode.cs
- FormsAuthentication.cs
- UpdateException.cs
- ErrorRuntimeConfig.cs
- HasCopySemanticsAttribute.cs
- ScriptComponentDescriptor.cs
- DataBinder.cs
- StartUpEventArgs.cs
- CompilerResults.cs
- Menu.cs
- AnnotationResourceChangedEventArgs.cs
- LongValidatorAttribute.cs
- LinqDataSourceValidationException.cs
- safesecurityhelperavalon.cs
- BoolExpression.cs
- ArcSegment.cs
- CollectionCodeDomSerializer.cs
- HttpResponse.cs
- DesignerDataParameter.cs
- XmlEnumAttribute.cs