Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeFileMappingHandle.cs
- QilLiteral.cs
- EventManager.cs
- ControlIdConverter.cs
- CellCreator.cs
- FileDialogPermission.cs
- ParameterToken.cs
- MultiBinding.cs
- SystemPens.cs
- FacetDescriptionElement.cs
- TextClipboardData.cs
- ContentValidator.cs
- VisualProxy.cs
- Wrapper.cs
- ApplicationException.cs
- LabelLiteral.cs
- BadImageFormatException.cs
- ArrayList.cs
- XmlChildEnumerator.cs
- BooleanProjectedSlot.cs
- SecurityCriticalDataForSet.cs
- Bits.cs
- ExternalDataExchangeClient.cs
- Types.cs
- DynamicRenderer.cs
- remotingproxy.cs
- IIS7WorkerRequest.cs
- SecurityKeyType.cs
- UrlMapping.cs
- HttpContextServiceHost.cs
- XPathBinder.cs
- TableLayoutPanelCellPosition.cs
- DefaultPrintController.cs
- PropertyGeneratedEventArgs.cs
- RuleRefElement.cs
- AttributeEmitter.cs
- KeyboardEventArgs.cs
- Bold.cs
- VirtualDirectoryMapping.cs
- WebPartDescription.cs
- KeyGestureValueSerializer.cs
- HttpDictionary.cs
- HtmlInputReset.cs
- OLEDB_Util.cs
- FileDialogPermission.cs
- MethodBuilder.cs
- LogSwitch.cs
- X509CertificateInitiatorServiceCredential.cs
- Html32TextWriter.cs
- LambdaCompiler.Logical.cs
- StrongNameMembershipCondition.cs
- RequestQueue.cs
- GridViewRowEventArgs.cs
- BodyWriter.cs
- SafeUserTokenHandle.cs
- PackageRelationship.cs
- CharAnimationUsingKeyFrames.cs
- SqlConnection.cs
- COM2ColorConverter.cs
- dsa.cs
- PrintDialog.cs
- CursorConverter.cs
- CustomError.cs
- Int32.cs
- ModelPropertyCollectionImpl.cs
- ObfuscationAttribute.cs
- TreeViewDesigner.cs
- SafeSystemMetrics.cs
- EntityContainerEmitter.cs
- SqlInfoMessageEvent.cs
- DataGridItemAutomationPeer.cs
- XmlNodeReader.cs
- TableRowsCollectionEditor.cs
- SplineQuaternionKeyFrame.cs
- WebBrowserSiteBase.cs
- BlurBitmapEffect.cs
- Calendar.cs
- ServiceDescription.cs
- Part.cs
- ProviderConnectionPoint.cs
- EnumerableRowCollectionExtensions.cs
- Soap.cs
- SelectingProviderEventArgs.cs
- XPathBuilder.cs
- FatalException.cs
- DataColumnPropertyDescriptor.cs
- TypedTableBaseExtensions.cs
- LocalBuilder.cs
- EntityDataSourceReferenceGroup.cs
- XmlCodeExporter.cs
- DoubleIndependentAnimationStorage.cs
- TextRange.cs
- PrinterResolution.cs
- XmlUtil.cs
- XXXOnTypeBuilderInstantiation.cs
- WebServicesDescriptionAttribute.cs
- ArrayListCollectionBase.cs
- AspNetHostingPermission.cs
- ActivityCodeDomReferenceService.cs
- LateBoundBitmapDecoder.cs