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
- UnsafeNativeMethods.cs
- ActivityMarkupSerializer.cs
- WsatConfiguration.cs
- PropertyConverter.cs
- WCFServiceClientProxyGenerator.cs
- TemplateControl.cs
- Environment.cs
- EntityDataReader.cs
- SelectionItemPattern.cs
- sqlpipe.cs
- TemplateColumn.cs
- SiteMapNode.cs
- EdmProperty.cs
- DesignTimeData.cs
- ComboBoxAutomationPeer.cs
- WebRequestModulesSection.cs
- EntityDataSourceWizardForm.cs
- InteropAutomationProvider.cs
- AuthorizationRule.cs
- NativeMethods.cs
- RijndaelCryptoServiceProvider.cs
- PermissionSet.cs
- XmlSecureResolver.cs
- FamilyMapCollection.cs
- OleDbException.cs
- ObjectHelper.cs
- DataControlCommands.cs
- SessionSwitchEventArgs.cs
- DataSourceControlBuilder.cs
- DocumentCollection.cs
- ExceptionHandler.cs
- Rectangle.cs
- ColorTransform.cs
- StateMachineAction.cs
- DiscoveryMessageSequence.cs
- _ConnectOverlappedAsyncResult.cs
- Control.cs
- XmlEventCache.cs
- AssertFilter.cs
- AutomationPropertyInfo.cs
- DefaultValidator.cs
- Selection.cs
- OleDbError.cs
- Span.cs
- TraceListener.cs
- OleTxTransaction.cs
- ExtensionDataObject.cs
- TreeIterator.cs
- BinaryParser.cs
- StringResourceManager.cs
- DataControlFieldCollection.cs
- SmiEventSink_DeferedProcessing.cs
- Int32Storage.cs
- DataSvcMapFile.cs
- VectorConverter.cs
- As.cs
- Table.cs
- DataGridCellsPresenter.cs
- ServiceControllerDesigner.cs
- Internal.cs
- DateRangeEvent.cs
- _ConnectStream.cs
- NativeObjectSecurity.cs
- RangeContentEnumerator.cs
- InvariantComparer.cs
- XmlDataDocument.cs
- RoutedPropertyChangedEventArgs.cs
- TypeDescriptor.cs
- ClickablePoint.cs
- SoundPlayer.cs
- dsa.cs
- PrePrepareMethodAttribute.cs
- Ipv6Element.cs
- ProviderIncompatibleException.cs
- LinkButton.cs
- DesignOnlyAttribute.cs
- DefaultAsyncDataDispatcher.cs
- ConstraintManager.cs
- DbConnectionClosed.cs
- DataGridDesigner.cs
- ObjectSet.cs
- PngBitmapDecoder.cs
- MetadataArtifactLoaderFile.cs
- InheritanceContextHelper.cs
- TypeExtensions.cs
- WebPartMenu.cs
- Adorner.cs
- OdbcDataAdapter.cs
- _LocalDataStoreMgr.cs
- ProcessManager.cs
- WorkflowDesignerMessageFilter.cs
- XamlVector3DCollectionSerializer.cs
- Int32Animation.cs
- TextLineResult.cs
- SamlAttribute.cs
- ContourSegment.cs
- SiteMapSection.cs
- TdsEnums.cs
- ReaderContextStackData.cs
- ActiveXMessageFormatter.cs