Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ValueProviderWrapper.cs
- ActivityExecutionContext.cs
- CroppedBitmap.cs
- EventBindingService.cs
- SqlDelegatedTransaction.cs
- RecognizedWordUnit.cs
- XmlIterators.cs
- Label.cs
- Char.cs
- ColorAnimation.cs
- PrintingPermissionAttribute.cs
- FontNamesConverter.cs
- TagPrefixAttribute.cs
- mediapermission.cs
- AssemblyNameUtility.cs
- ParallelEnumerable.cs
- MenuItemCollection.cs
- ItemType.cs
- DelegateTypeInfo.cs
- XmlWrappingReader.cs
- SystemParameters.cs
- MetadataPropertyvalue.cs
- XPathConvert.cs
- XmlSchemaValidationException.cs
- DecimalConverter.cs
- AnnotationResource.cs
- RtfControlWordInfo.cs
- DataGridItemEventArgs.cs
- TableRowCollection.cs
- ComponentCommands.cs
- UDPClient.cs
- XsltException.cs
- TransformCollection.cs
- DataShape.cs
- ProtocolsSection.cs
- MailSettingsSection.cs
- SeverityFilter.cs
- __ComObject.cs
- HtmlMeta.cs
- Rfc4050KeyFormatter.cs
- TemplateControlBuildProvider.cs
- ListChangedEventArgs.cs
- SerialPinChanges.cs
- PersistenceException.cs
- EdmPropertyAttribute.cs
- MultiViewDesigner.cs
- AdCreatedEventArgs.cs
- PerformanceCounterPermissionEntryCollection.cs
- relpropertyhelper.cs
- DataGridViewComboBoxColumn.cs
- IsolatedStorageFilePermission.cs
- FormClosedEvent.cs
- ExpressionBindingsDialog.cs
- MaskedTextBoxDesignerActionList.cs
- MaskInputRejectedEventArgs.cs
- ResourceDescriptionAttribute.cs
- TimeZone.cs
- GetReadStreamResult.cs
- PersonalizationProviderHelper.cs
- FormatSettings.cs
- altserialization.cs
- HandlerBase.cs
- NavigationWindowAutomationPeer.cs
- OracleConnectionFactory.cs
- DetailsViewUpdatedEventArgs.cs
- recordstatescratchpad.cs
- GridSplitterAutomationPeer.cs
- Figure.cs
- XmlException.cs
- CompositeControlDesigner.cs
- ExceptionRoutedEventArgs.cs
- InputLanguageCollection.cs
- Int64AnimationUsingKeyFrames.cs
- AuthenticatedStream.cs
- TraceLog.cs
- ListBase.cs
- SecUtil.cs
- XmlHierarchicalDataSourceView.cs
- BooleanAnimationBase.cs
- WmlTextBoxAdapter.cs
- SchemaConstraints.cs
- AppDomainManager.cs
- StringWriter.cs
- XPathParser.cs
- TextBoxAutoCompleteSourceConverter.cs
- SoapDocumentMethodAttribute.cs
- SendSecurityHeader.cs
- DataGridCommandEventArgs.cs
- DefaultBinder.cs
- KnownTypeDataContractResolver.cs
- TextFormatterImp.cs
- TableLayoutSettings.cs
- MissingManifestResourceException.cs
- ParserStreamGeometryContext.cs
- Debug.cs
- WebPartVerb.cs
- WsatServiceAddress.cs
- xsdvalidator.cs
- TextBoxAutomationPeer.cs
- SmiXetterAccessMap.cs