Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MediaTimeline.cs
- ContentControl.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- HandledMouseEvent.cs
- BaseValidator.cs
- TextReturnReader.cs
- AlternateViewCollection.cs
- Context.cs
- LineInfo.cs
- AssertFilter.cs
- ClientTargetCollection.cs
- DPCustomTypeDescriptor.cs
- ConfigurationValidatorBase.cs
- Keywords.cs
- ImageCollectionEditor.cs
- BaseParaClient.cs
- GetBrowserTokenRequest.cs
- CacheEntry.cs
- PageOutputColor.cs
- UserNameSecurityToken.cs
- OdbcFactory.cs
- Number.cs
- DetailsViewInsertEventArgs.cs
- SetState.cs
- AnchoredBlock.cs
- ManagementException.cs
- CircleEase.cs
- MonthChangedEventArgs.cs
- FusionWrap.cs
- RemotingConfiguration.cs
- WindowsFormsLinkLabel.cs
- SqlColumnizer.cs
- NativeMethods.cs
- DialogResultConverter.cs
- RtfToXamlReader.cs
- SqlMetaData.cs
- DefaultPropertiesToSend.cs
- EntryIndex.cs
- RemotingException.cs
- LabelLiteral.cs
- ChainedAsyncResult.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DateTimeConverter2.cs
- CompressStream.cs
- DataViewManager.cs
- SystemIcons.cs
- WebPartZoneCollection.cs
- MaterialCollection.cs
- NumberAction.cs
- PostBackOptions.cs
- PositiveTimeSpanValidator.cs
- WinFormsSecurity.cs
- HttpStaticObjectsCollectionWrapper.cs
- base64Transforms.cs
- CachedTypeface.cs
- NavigationPropertyEmitter.cs
- figurelengthconverter.cs
- SynchronizationLockException.cs
- DesignerTransaction.cs
- ControlTemplate.cs
- CodeStatementCollection.cs
- RouteParameter.cs
- InputBinder.cs
- ThicknessAnimation.cs
- SortedSetDebugView.cs
- EntitySetBaseCollection.cs
- PageParserFilter.cs
- LoadWorkflowCommand.cs
- PtsHelper.cs
- SystemResources.cs
- KeyFrames.cs
- GuidelineCollection.cs
- CqlErrorHelper.cs
- TextFragmentEngine.cs
- TrustDriver.cs
- ListBindingHelper.cs
- ValueTable.cs
- IndicCharClassifier.cs
- EntitySqlException.cs
- VisualStyleInformation.cs
- ClientConfigPaths.cs
- WebContext.cs
- XmlCodeExporter.cs
- TabOrder.cs
- CopyOfAction.cs
- TemplateBindingExpressionConverter.cs
- WindowsSolidBrush.cs
- TemplateControlBuildProvider.cs
- DataGridViewComboBoxCell.cs
- Button.cs
- NameTable.cs
- FontInfo.cs
- CodeAttributeDeclaration.cs
- IDReferencePropertyAttribute.cs
- DPTypeDescriptorContext.cs
- UserControl.cs
- CustomAttributeSerializer.cs
- DataListItem.cs
- DbProviderManifest.cs
- GenerateScriptTypeAttribute.cs