Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / SafeNativeMethods.cs / 1305376 / 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
- ProcessHostFactoryHelper.cs
- ActivityStatusChangeEventArgs.cs
- FontFamily.cs
- CellPartitioner.cs
- LoginUtil.cs
- Separator.cs
- SrgsSemanticInterpretationTag.cs
- AttributeData.cs
- configsystem.cs
- ListBindableAttribute.cs
- TextFormatterHost.cs
- CodeCompiler.cs
- BooleanAnimationUsingKeyFrames.cs
- XmlSchemaValidationException.cs
- RawStylusInput.cs
- MatrixStack.cs
- List.cs
- ToolboxDataAttribute.cs
- AccessDataSourceDesigner.cs
- XPathItem.cs
- BaseCodePageEncoding.cs
- SoapFormatter.cs
- SerializationFieldInfo.cs
- RoutedCommand.cs
- ClientUtils.cs
- ContentControl.cs
- CanonicalXml.cs
- MetadataFile.cs
- AutomationElementIdentifiers.cs
- DetailsViewUpdateEventArgs.cs
- DataTableMappingCollection.cs
- MarshalDirectiveException.cs
- GridViewPageEventArgs.cs
- PriorityChain.cs
- ThrowOnMultipleAssignment.cs
- CompilerGeneratedAttribute.cs
- MergePropertyDescriptor.cs
- DuplicateContext.cs
- RuleAttributes.cs
- XamlVector3DCollectionSerializer.cs
- ProfileInfo.cs
- PtsCache.cs
- SafeSecurityHelper.cs
- ProfileParameter.cs
- activationcontext.cs
- AnnotationComponentChooser.cs
- BitmapMetadataBlob.cs
- XmlSchema.cs
- Logging.cs
- NativeMethods.cs
- Pts.cs
- ItemsControl.cs
- ClientUtils.cs
- TemplatePropertyEntry.cs
- ResourceExpressionBuilder.cs
- WorkflowDispatchContext.cs
- EmptyStringExpandableObjectConverter.cs
- FlowNode.cs
- FuncTypeConverter.cs
- WaveHeader.cs
- _HTTPDateParse.cs
- FileDialog_Vista.cs
- InternalsVisibleToAttribute.cs
- WebDescriptionAttribute.cs
- StateRuntime.cs
- DataPagerFieldItem.cs
- PrintPreviewControl.cs
- TabControl.cs
- StorageMappingFragment.cs
- LabelInfo.cs
- WorkflowOperationAsyncResult.cs
- ReverseInheritProperty.cs
- GraphicsState.cs
- RegexWorker.cs
- DataGridTextBoxColumn.cs
- ArrayEditor.cs
- Pointer.cs
- ACE.cs
- EntryPointNotFoundException.cs
- IdentifierService.cs
- HtmlForm.cs
- DescendantQuery.cs
- NavigationFailedEventArgs.cs
- DesignDataSource.cs
- OleDbEnumerator.cs
- OracleLob.cs
- LambdaCompiler.Logical.cs
- DefinitionUpdate.cs
- CalendarDay.cs
- NetNamedPipeBindingElement.cs
- AppDomainShutdownMonitor.cs
- DocumentApplicationJournalEntry.cs
- FormCollection.cs
- CustomPopupPlacement.cs
- Timer.cs
- HuffCodec.cs
- RoleGroup.cs
- SymLanguageType.cs
- Rect.cs
- smtpconnection.cs