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
- CompositeTypefaceMetrics.cs
- StyleTypedPropertyAttribute.cs
- ValueQuery.cs
- DetailsViewUpdatedEventArgs.cs
- SerializerDescriptor.cs
- X509ScopedServiceCertificateElementCollection.cs
- ExceptionCollection.cs
- UnsafeNativeMethods.cs
- WorkflowMessageEventArgs.cs
- FileDetails.cs
- DuplicateWaitObjectException.cs
- UnsafeNativeMethods.cs
- QilReference.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SecurityIdentifierElement.cs
- EntityDataSourceView.cs
- shaperfactoryquerycacheentry.cs
- XmlReaderSettings.cs
- XamlSerializer.cs
- X509ChainPolicy.cs
- ProcessManager.cs
- XmlText.cs
- RecognizerStateChangedEventArgs.cs
- DataSourceView.cs
- SecurityPolicySection.cs
- TextElementEditingBehaviorAttribute.cs
- EdmItemError.cs
- IChannel.cs
- ZoomPercentageConverter.cs
- _ConnectStream.cs
- Configuration.cs
- WindowsScrollBarBits.cs
- DeclarativeExpressionConditionDeclaration.cs
- PasswordBoxAutomationPeer.cs
- ScaleTransform.cs
- SqlClientWrapperSmiStreamChars.cs
- CodeTypeParameterCollection.cs
- ParameterToken.cs
- RequestContext.cs
- WebPartHelpVerb.cs
- EventRecordWrittenEventArgs.cs
- ReaderOutput.cs
- CodeLabeledStatement.cs
- HMACSHA384.cs
- UDPClient.cs
- StoreAnnotationsMap.cs
- XmlLanguageConverter.cs
- LogConverter.cs
- LocatorPart.cs
- PackageRelationshipSelector.cs
- DocumentApplicationJournalEntry.cs
- PixelFormatConverter.cs
- _ConnectOverlappedAsyncResult.cs
- PathNode.cs
- SchemaCollectionPreprocessor.cs
- BindingSource.cs
- ThicknessAnimationBase.cs
- AssemblyHash.cs
- GroupLabel.cs
- Misc.cs
- PropertyGeneratedEventArgs.cs
- StrongNameKeyPair.cs
- ThumbButtonInfoCollection.cs
- TableLayoutSettings.cs
- TimeSpanSecondsConverter.cs
- XamlRtfConverter.cs
- ConstructorNeedsTagAttribute.cs
- VirtualizedContainerService.cs
- DataBindingList.cs
- Terminate.cs
- _BasicClient.cs
- ProcessProtocolHandler.cs
- DependencyPropertyDescriptor.cs
- CornerRadius.cs
- TypefaceMetricsCache.cs
- EncoderReplacementFallback.cs
- XmlUtf8RawTextWriter.cs
- SystemWebCachingSectionGroup.cs
- EditCommandColumn.cs
- BamlRecordReader.cs
- GridViewUpdateEventArgs.cs
- WebBrowserHelper.cs
- AggregationMinMaxHelpers.cs
- ConsoleEntryPoint.cs
- CodePageEncoding.cs
- DefaultBinder.cs
- CheckedListBox.cs
- ObjectManager.cs
- CodeGroup.cs
- Attribute.cs
- URLMembershipCondition.cs
- DNS.cs
- NamespaceMapping.cs
- Roles.cs
- FontCollection.cs
- TemplatedEditableDesignerRegion.cs
- WorkflowPageSetupDialog.cs
- CssTextWriter.cs
- TextRunCache.cs
- SiteMapNodeCollection.cs