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
- ConsumerConnectionPointCollection.cs
- EventWaitHandleSecurity.cs
- TypeHelper.cs
- _DomainName.cs
- DecoderNLS.cs
- PrivacyNoticeBindingElementImporter.cs
- OrderedDictionary.cs
- FixedHyperLink.cs
- MarshalByRefObject.cs
- FormViewCommandEventArgs.cs
- TabletDeviceInfo.cs
- XmlBinaryReaderSession.cs
- RelationshipWrapper.cs
- SchemaHelper.cs
- DataGridViewCellCollection.cs
- RemotingSurrogateSelector.cs
- SoapObjectReader.cs
- XPathException.cs
- LinkButton.cs
- DiscoveryMessageSequenceCD1.cs
- AccessDataSourceView.cs
- UpdateCommand.cs
- CalendarDateRange.cs
- MediaContextNotificationWindow.cs
- CodeTypeParameter.cs
- AbandonedMutexException.cs
- BitmapEffectDrawingContent.cs
- WpfWebRequestHelper.cs
- DiscoveryClient.cs
- _ServiceNameStore.cs
- ServerIdentity.cs
- UpdatePanelTriggerCollection.cs
- XsdDataContractImporter.cs
- ZipPackagePart.cs
- StorageEndPropertyMapping.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SqlNodeAnnotation.cs
- WmlControlAdapter.cs
- DataFieldCollectionEditor.cs
- AnnotationAuthorChangedEventArgs.cs
- Content.cs
- XmlHelper.cs
- ToolStripDropDownClosedEventArgs.cs
- GeneralTransformGroup.cs
- TypeUtil.cs
- SqlCachedBuffer.cs
- MenuCommand.cs
- MouseOverProperty.cs
- PathFigureCollection.cs
- SemaphoreSecurity.cs
- StandardCommands.cs
- FlowDocumentFormatter.cs
- FileCodeGroup.cs
- XmlReflectionImporter.cs
- ChtmlSelectionListAdapter.cs
- Int64AnimationBase.cs
- CodeMemberField.cs
- Misc.cs
- RepeaterItemCollection.cs
- MediaPlayerState.cs
- OleCmdHelper.cs
- BoundsDrawingContextWalker.cs
- SoapAttributeAttribute.cs
- SaveFileDialog.cs
- KeyedPriorityQueue.cs
- DiscardableAttribute.cs
- JsonFormatWriterGenerator.cs
- CfgSemanticTag.cs
- ManagementObject.cs
- UnsafeNativeMethods.cs
- GroupItemAutomationPeer.cs
- ServiceOperationParameter.cs
- SafeCryptoHandles.cs
- AppSettingsReader.cs
- DurationConverter.cs
- WebServiceEnumData.cs
- DynamicVirtualDiscoSearcher.cs
- KeyGestureValueSerializer.cs
- GPRECTF.cs
- Visual.cs
- Point3DKeyFrameCollection.cs
- XmlAnyElementAttribute.cs
- BinaryObjectReader.cs
- DecoderReplacementFallback.cs
- SequenceRangeCollection.cs
- ValidatingCollection.cs
- BCryptSafeHandles.cs
- TextEffect.cs
- NonSerializedAttribute.cs
- TextShapeableCharacters.cs
- GAC.cs
- OleDbConnectionInternal.cs
- TransformProviderWrapper.cs
- JoinTreeNode.cs
- WebBrowserBase.cs
- FastPropertyAccessor.cs
- DesignerSerializationVisibilityAttribute.cs
- SpecialNameAttribute.cs
- WebServicesDescriptionAttribute.cs
- ErrorTableItemStyle.cs