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
- SessionPageStateSection.cs
- VisualBasicReference.cs
- SiteMapSection.cs
- SynchronizedRandom.cs
- HotCommands.cs
- Convert.cs
- VariableValue.cs
- ColumnTypeConverter.cs
- EntityObject.cs
- LockingPersistenceProvider.cs
- GestureRecognizer.cs
- SessionState.cs
- NamedPipeAppDomainProtocolHandler.cs
- Int32Rect.cs
- MimePart.cs
- Logging.cs
- ResXFileRef.cs
- Sql8ConformanceChecker.cs
- PreProcessor.cs
- ConfigXmlReader.cs
- TimelineGroup.cs
- TimelineGroup.cs
- MethodExpr.cs
- FlowSwitchDesigner.xaml.cs
- MessageQueueInstaller.cs
- ActivationServices.cs
- SrgsToken.cs
- CompilerGlobalScopeAttribute.cs
- SafeLocalMemHandle.cs
- PasswordBox.cs
- DataKey.cs
- PrintPreviewGraphics.cs
- DocumentPageViewAutomationPeer.cs
- FacetEnabledSchemaElement.cs
- SeverityFilter.cs
- PrtTicket_Public.cs
- ProcessManager.cs
- XNodeValidator.cs
- MenuItemCollection.cs
- Soap12ProtocolImporter.cs
- DataRowComparer.cs
- WindowPattern.cs
- XmlSchemaImport.cs
- ApplicationServiceHelper.cs
- FlowPosition.cs
- XPathSingletonIterator.cs
- MemoryPressure.cs
- ContextProperty.cs
- MonitorWrapper.cs
- InlineObject.cs
- DataSpaceManager.cs
- TypeDependencyAttribute.cs
- AssociationSetEnd.cs
- CodeGotoStatement.cs
- OracleSqlParser.cs
- Win32.cs
- HttpRequest.cs
- SByteConverter.cs
- EntityWrapperFactory.cs
- Or.cs
- EntityDataSourceChangingEventArgs.cs
- HttpProfileBase.cs
- SqlHelper.cs
- ServerIdentity.cs
- SettingsPropertyNotFoundException.cs
- DecimalStorage.cs
- ExpressionsCollectionConverter.cs
- XsltException.cs
- EventProviderWriter.cs
- ViewUtilities.cs
- uribuilder.cs
- TextProperties.cs
- HttpContext.cs
- RepeaterCommandEventArgs.cs
- ImageAttributes.cs
- UndoManager.cs
- ConfigXmlCDataSection.cs
- Knowncolors.cs
- SafeBitVector32.cs
- XmlEncoding.cs
- HostedHttpRequestAsyncResult.cs
- Operand.cs
- FontFamily.cs
- XmlHelper.cs
- PlatformNotSupportedException.cs
- ProfilePropertySettingsCollection.cs
- DirectoryObjectSecurity.cs
- SqlHelper.cs
- XmlSubtreeReader.cs
- MsmqHostedTransportManager.cs
- LineServicesCallbacks.cs
- FontUnit.cs
- ComboBoxHelper.cs
- HttpRequest.cs
- TypeDescriptorFilterService.cs
- EncoderParameters.cs
- Drawing.cs
- SizeChangedInfo.cs
- SynchronizationContext.cs
- ControlBindingsConverter.cs