Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RichTextBoxConstants.cs
- _StreamFramer.cs
- RectKeyFrameCollection.cs
- HtmlHistory.cs
- ApplicationServiceHelper.cs
- __FastResourceComparer.cs
- WinEventWrap.cs
- EncoderNLS.cs
- Model3DGroup.cs
- EntityObject.cs
- LinearKeyFrames.cs
- SoapCommonClasses.cs
- LicenseContext.cs
- SqlReorderer.cs
- BamlRecordReader.cs
- GroupStyle.cs
- ArrangedElement.cs
- Group.cs
- PropertyBuilder.cs
- CollectionType.cs
- ScrollViewer.cs
- ArgumentNullException.cs
- DrawToolTipEventArgs.cs
- HttpRuntime.cs
- VirtualPathUtility.cs
- Error.cs
- FigureHelper.cs
- ScrollBarAutomationPeer.cs
- RepeatButtonAutomationPeer.cs
- UnauthorizedWebPart.cs
- WmlLiteralTextAdapter.cs
- DataServiceRequestArgs.cs
- DynamicRenderer.cs
- WebPartVerb.cs
- TextEmbeddedObject.cs
- XmlSchemaCompilationSettings.cs
- TransformerConfigurationWizardBase.cs
- PasswordRecovery.cs
- RolePrincipal.cs
- SessionParameter.cs
- XmlAggregates.cs
- DecimalConstantAttribute.cs
- VariableBinder.cs
- SimpleWebHandlerParser.cs
- Splitter.cs
- TargetControlTypeCache.cs
- ClassGenerator.cs
- StreamGeometry.cs
- TimeEnumHelper.cs
- InternalPermissions.cs
- Atom10ItemFormatter.cs
- Opcode.cs
- Translator.cs
- GridItemCollection.cs
- SoapAttributeAttribute.cs
- DeflateEmulationStream.cs
- DetailsViewRowCollection.cs
- CategoryGridEntry.cs
- InputLangChangeRequestEvent.cs
- EpmCustomContentDeSerializer.cs
- ResourcePool.cs
- coordinatorscratchpad.cs
- UserInitiatedNavigationPermission.cs
- XmlNodeComparer.cs
- GuidTagList.cs
- PagedDataSource.cs
- DataServiceConfiguration.cs
- HostingPreferredMapPath.cs
- XmlResolver.cs
- ClientData.cs
- LogicalExpr.cs
- MSAAWinEventWrap.cs
- RequestCacheManager.cs
- PasswordRecoveryAutoFormat.cs
- DataFormats.cs
- InkCanvasInnerCanvas.cs
- ToolStripContainer.cs
- Timeline.cs
- AttributeSetAction.cs
- BitmapEffect.cs
- EvidenceBase.cs
- ExeContext.cs
- lengthconverter.cs
- FormsAuthenticationUserCollection.cs
- TreeNodeEventArgs.cs
- LinkLabel.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebBrowsableAttribute.cs
- MeshGeometry3D.cs
- AllowedAudienceUriElement.cs
- newinstructionaction.cs
- XmlSchemaAnnotation.cs
- LocalBuilder.cs
- ConnectionPoolManager.cs
- SectionRecord.cs
- AuthenticationServiceManager.cs
- EdmProperty.cs
- SourceFileInfo.cs
- DoubleIndependentAnimationStorage.cs
- CalendarTable.cs