Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LiteralDesigner.cs
- PrimitiveXmlSerializers.cs
- Model3D.cs
- ListViewCancelEventArgs.cs
- ToggleButtonAutomationPeer.cs
- Stroke2.cs
- DescendantQuery.cs
- DataProtection.cs
- MatrixIndependentAnimationStorage.cs
- Journaling.cs
- DBCSCodePageEncoding.cs
- BaseProcessor.cs
- IconBitmapDecoder.cs
- CellTreeNode.cs
- ReachBasicContext.cs
- TypeInitializationException.cs
- DataConnectionHelper.cs
- BrowserTree.cs
- ProcessThread.cs
- ImportCatalogPart.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EndpointConfigContainer.cs
- BamlLocalizer.cs
- SiteMapPath.cs
- ExceptionTrace.cs
- FragmentQuery.cs
- EntityDesignerDataSourceView.cs
- PriorityRange.cs
- PropertyEntry.cs
- Mapping.cs
- AdornerPresentationContext.cs
- CmsInterop.cs
- SafeNativeMethodsCLR.cs
- CachedResourceDictionaryExtension.cs
- Cursor.cs
- AlphaSortedEnumConverter.cs
- BindingSource.cs
- Relationship.cs
- BreadCrumbTextConverter.cs
- WebPartZoneBase.cs
- TextDecorationCollection.cs
- PointLightBase.cs
- DrawingGroupDrawingContext.cs
- SqlDataReader.cs
- RuntimeComponentFilter.cs
- EtwTrackingBehavior.cs
- LocationSectionRecord.cs
- TypeElement.cs
- SamlAuthorityBinding.cs
- CodeEventReferenceExpression.cs
- DataBindEngine.cs
- StructuredCompositeActivityDesigner.cs
- SurrogateChar.cs
- MethodAccessException.cs
- QuotedStringFormatReader.cs
- ItemsChangedEventArgs.cs
- Scheduler.cs
- SqlServer2KCompatibilityAnnotation.cs
- StrokeNodeOperations.cs
- Filter.cs
- EncryptedPackage.cs
- ExpressionWriter.cs
- FileChangesMonitor.cs
- MatrixCamera.cs
- SrgsDocumentParser.cs
- CompiledIdentityConstraint.cs
- Literal.cs
- CfgArc.cs
- ProviderCollection.cs
- TextServicesContext.cs
- SystemIcmpV4Statistics.cs
- BindingExpressionUncommonField.cs
- Privilege.cs
- Frame.cs
- ProcessThread.cs
- SerializationObjectManager.cs
- TreeNodeBinding.cs
- TrustSection.cs
- ConditionalWeakTable.cs
- BuildProvider.cs
- Reference.cs
- HttpWebRequest.cs
- DataGridViewIntLinkedList.cs
- PermissionToken.cs
- EventData.cs
- IIS7UserPrincipal.cs
- WindowsAuthenticationModule.cs
- SettingsContext.cs
- SpellerError.cs
- jithelpers.cs
- TargetParameterCountException.cs
- DropDownHolder.cs
- ParserHooks.cs
- Int16.cs
- CalendarDataBindingHandler.cs
- SymmetricAlgorithm.cs
- WorkflowTransactionOptions.cs
- RelationshipManager.cs
- EndpointAddress10.cs
- SafeBitVector32.cs