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
- ParagraphResult.cs
- _SafeNetHandles.cs
- AlphabetConverter.cs
- VersionedStream.cs
- SpecularMaterial.cs
- RelatedView.cs
- Serializer.cs
- ChangeInterceptorAttribute.cs
- AnnotationAdorner.cs
- CompositeDuplexBindingElement.cs
- PropertyMapper.cs
- DataGridViewCellStyleConverter.cs
- BinaryObjectInfo.cs
- SqlDuplicator.cs
- RawStylusInputCustomData.cs
- SharedDp.cs
- WebPermission.cs
- DataViewListener.cs
- DataFieldCollectionEditor.cs
- RuleDefinitions.cs
- FileLogRecordStream.cs
- DataMemberConverter.cs
- EventLogEntry.cs
- MimePart.cs
- objectresult_tresulttype.cs
- LostFocusEventManager.cs
- HtmlButton.cs
- ThreadSafeList.cs
- SignatureSummaryDialog.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LiteralControl.cs
- CodeLinePragma.cs
- Vector3DAnimationBase.cs
- Run.cs
- UnsafeNativeMethods.cs
- Visual3D.cs
- EventMappingSettings.cs
- QuaternionAnimationBase.cs
- UnionCodeGroup.cs
- SourceChangedEventArgs.cs
- BitmapEncoder.cs
- GeometryModel3D.cs
- StreamGeometryContext.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DetailsViewDeletedEventArgs.cs
- EdmScalarPropertyAttribute.cs
- FormattedTextSymbols.cs
- TypeSystem.cs
- LiteralTextParser.cs
- Profiler.cs
- PropertyKey.cs
- FilterableAttribute.cs
- DataRecordInfo.cs
- StorageTypeMapping.cs
- ZoneButton.cs
- TableLayoutStyleCollection.cs
- BindUriHelper.cs
- DATA_BLOB.cs
- MailAddress.cs
- StaticResourceExtension.cs
- StringWriter.cs
- OleDbCommand.cs
- QueueProcessor.cs
- ThreadAttributes.cs
- AuthenticationSection.cs
- SimpleFileLog.cs
- ManualResetEvent.cs
- PermissionToken.cs
- SynchronizingStream.cs
- SessionStateContainer.cs
- listitem.cs
- TextPointer.cs
- CustomAttributeFormatException.cs
- ArgumentException.cs
- NeutralResourcesLanguageAttribute.cs
- DotExpr.cs
- Currency.cs
- DataListItemCollection.cs
- TreeChangeInfo.cs
- AuthenticationManager.cs
- RegionData.cs
- SectionInformation.cs
- Image.cs
- WebPartConnectionsDisconnectVerb.cs
- x509store.cs
- AttributeSetAction.cs
- SQLDoubleStorage.cs
- ThreadSafeMessageFilterTable.cs
- IsolatedStoragePermission.cs
- ProcessModelInfo.cs
- SharedUtils.cs
- MenuAutoFormat.cs
- ActivityCodeGenerator.cs
- Misc.cs
- ReferencedCollectionType.cs
- DoubleConverter.cs
- LayoutTable.cs
- BindingWorker.cs
- typedescriptorpermission.cs
- ListViewInsertedEventArgs.cs