Code:
/ FX-1434 / FX-1434 / 1.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
- HttpResponseHeader.cs
- DateTimeUtil.cs
- PropertyRecord.cs
- ToolStripScrollButton.cs
- PermissionToken.cs
- AppSecurityManager.cs
- RelatedPropertyManager.cs
- SemaphoreFullException.cs
- RegexInterpreter.cs
- LiteralControl.cs
- Bitmap.cs
- SqlDataReader.cs
- TableRowGroupCollection.cs
- DoubleCollectionConverter.cs
- RegexCompiler.cs
- HandleCollector.cs
- DelegateSerializationHolder.cs
- HttpHandlersSection.cs
- RequestStatusBarUpdateEventArgs.cs
- ImageUrlEditor.cs
- RightsManagementInformation.cs
- columnmapkeybuilder.cs
- IdentityValidationException.cs
- JulianCalendar.cs
- ProjectedWrapper.cs
- SessionEndingEventArgs.cs
- CompiledIdentityConstraint.cs
- QilGenerator.cs
- ToolStripGripRenderEventArgs.cs
- VariableAction.cs
- sqlpipe.cs
- XPathException.cs
- StringWriter.cs
- SizeChangedInfo.cs
- FunctionImportMapping.cs
- ToggleButtonAutomationPeer.cs
- HandleExceptionArgs.cs
- UIElementHelper.cs
- BitmapEffect.cs
- Freezable.cs
- SqlConnectionHelper.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HandlerBase.cs
- WebBrowserEvent.cs
- RuntimeConfigLKG.cs
- Lasso.cs
- XmlSchemaSet.cs
- SerializationHelper.cs
- ITreeGenerator.cs
- SymmetricKeyWrap.cs
- ImageListUtils.cs
- CredentialCache.cs
- PrimitiveType.cs
- SourceChangedEventArgs.cs
- OutputBuffer.cs
- CodeDomConfigurationHandler.cs
- ResourceSet.cs
- ThicknessAnimationBase.cs
- PersistChildrenAttribute.cs
- EditCommandColumn.cs
- Bold.cs
- CubicEase.cs
- EntityClientCacheKey.cs
- XLinq.cs
- VersionedStream.cs
- _HeaderInfoTable.cs
- SecurityDescriptor.cs
- SafeRightsManagementHandle.cs
- RemotingAttributes.cs
- safelinkcollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Compiler.cs
- DesignerGenericWebPart.cs
- ExpressionPrinter.cs
- COM2FontConverter.cs
- _SslState.cs
- HtmlFormWrapper.cs
- PropertyStore.cs
- AppSettingsExpressionBuilder.cs
- PersistenceProvider.cs
- RefType.cs
- ImageMapEventArgs.cs
- Tag.cs
- IntSecurity.cs
- IsolatedStorageFileStream.cs
- AssemblyCollection.cs
- LZCodec.cs
- DocumentGridPage.cs
- AuthenticationConfig.cs
- Soap.cs
- XmlQueryOutput.cs
- XsltSettings.cs
- InvokeGenerator.cs
- CompModSwitches.cs
- SoundPlayerAction.cs
- ConvertersCollection.cs
- ParallelEnumerable.cs
- XmlILIndex.cs
- GridViewCancelEditEventArgs.cs
- OperationInvokerTrace.cs