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
- XmlNotation.cs
- Timer.cs
- SectionInput.cs
- TrackingStringDictionary.cs
- GridViewCellAutomationPeer.cs
- GroupJoinQueryOperator.cs
- SchemaCollectionPreprocessor.cs
- QueryStringParameter.cs
- WebCategoryAttribute.cs
- XmlSchemaException.cs
- LoginView.cs
- LockedAssemblyCache.cs
- TextBox.cs
- IsolatedStorageFileStream.cs
- OrCondition.cs
- CodeSnippetStatement.cs
- ApplicationHost.cs
- HostProtectionPermission.cs
- SchemaNamespaceManager.cs
- GlyphInfoList.cs
- XmlDataSourceDesigner.cs
- AssemblyAttributesGoHere.cs
- DependencyPropertyKey.cs
- RelationshipEndMember.cs
- QuaternionRotation3D.cs
- FlowLayoutPanel.cs
- DodSequenceMerge.cs
- BitmapEffectRenderDataResource.cs
- DoubleUtil.cs
- SqlClientFactory.cs
- CanonicalizationDriver.cs
- PipelineModuleStepContainer.cs
- Bezier.cs
- ObjectFullSpanRewriter.cs
- IntSecurity.cs
- Property.cs
- AmbientLight.cs
- DesignerHierarchicalDataSourceView.cs
- PermissionSet.cs
- SHA256Managed.cs
- LoadedOrUnloadedOperation.cs
- FlowDocumentScrollViewer.cs
- InstanceDescriptor.cs
- DataControlField.cs
- SafeEventLogReadHandle.cs
- ServiceModelExtensionElement.cs
- ListView.cs
- DecimalAnimationUsingKeyFrames.cs
- srgsitem.cs
- DataGridCommandEventArgs.cs
- ActiveXContainer.cs
- DataStorage.cs
- shaperfactory.cs
- CultureInfo.cs
- XPathNavigatorKeyComparer.cs
- Bits.cs
- Condition.cs
- WebPartCatalogAddVerb.cs
- WebPartDisplayModeCancelEventArgs.cs
- Quaternion.cs
- StylusTip.cs
- BitmapEffectDrawingContextWalker.cs
- Int32AnimationUsingKeyFrames.cs
- PrintPageEvent.cs
- ViewKeyConstraint.cs
- DynamicActivity.cs
- IImplicitResourceProvider.cs
- ReverseInheritProperty.cs
- ListSourceHelper.cs
- TimelineCollection.cs
- ConnectionPointGlyph.cs
- Utilities.cs
- TraceLog.cs
- TdsParserStaticMethods.cs
- SortableBindingList.cs
- XXXOnTypeBuilderInstantiation.cs
- DbLambda.cs
- Assert.cs
- WindowsListView.cs
- Transactions.cs
- WebPartHelpVerb.cs
- ConfigXmlText.cs
- SeverityFilter.cs
- Privilege.cs
- Bits.cs
- DataRelationCollection.cs
- ClientTargetSection.cs
- Operators.cs
- HttpRequestCacheValidator.cs
- SqlBooleanizer.cs
- TimelineCollection.cs
- webbrowsersite.cs
- TextSpan.cs
- ItemsControlAutomationPeer.cs
- CollectionViewProxy.cs
- SoapHeader.cs
- SystemWebExtensionsSectionGroup.cs
- SamlAssertion.cs
- ADMembershipUser.cs
- NamedPipeHostedTransportConfiguration.cs