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
- PageEventArgs.cs
- RequestContextBase.cs
- TreeView.cs
- HMACMD5.cs
- LambdaCompiler.Address.cs
- RectIndependentAnimationStorage.cs
- AbstractSvcMapFileLoader.cs
- ToolStripDropDownClosingEventArgs.cs
- DetailsViewModeEventArgs.cs
- Tracer.cs
- TagMapCollection.cs
- Rect.cs
- ContainerAction.cs
- PageFunction.cs
- CollectionViewGroupRoot.cs
- GridViewUpdatedEventArgs.cs
- DataProtection.cs
- RegexReplacement.cs
- Rect.cs
- XmlUrlResolver.cs
- HierarchicalDataBoundControlAdapter.cs
- QuotedPrintableStream.cs
- SettingsSection.cs
- TimeZone.cs
- PageEventArgs.cs
- EastAsianLunisolarCalendar.cs
- RecoverInstanceLocksCommand.cs
- SmtpReplyReader.cs
- JsonQueryStringConverter.cs
- XmlDataSourceView.cs
- Rotation3DAnimation.cs
- StringArrayConverter.cs
- StylusDownEventArgs.cs
- TypeInitializationException.cs
- ListViewTableCell.cs
- Translator.cs
- NativeMethods.cs
- CommonXSendMessage.cs
- ImmutableDispatchRuntime.cs
- EditorPart.cs
- AttachedPropertyBrowsableAttribute.cs
- RawKeyboardInputReport.cs
- XmlAnyElementAttributes.cs
- TTSEngineProxy.cs
- Win32.cs
- ReverseQueryOperator.cs
- HtmlButton.cs
- XmlAnyElementAttributes.cs
- CookieProtection.cs
- DbParameterHelper.cs
- SqlCacheDependency.cs
- ParserExtension.cs
- Encoding.cs
- TemplateContentLoader.cs
- InfoCardSymmetricCrypto.cs
- ConfigXmlWhitespace.cs
- TraceUtility.cs
- XmlILIndex.cs
- CryptoStream.cs
- __Filters.cs
- cookieexception.cs
- SerializationHelper.cs
- OptimizedTemplateContentHelper.cs
- ValidatorCompatibilityHelper.cs
- PeerNameResolver.cs
- XPathSelectionIterator.cs
- DataGridPagerStyle.cs
- TreeNodeSelectionProcessor.cs
- HelpFileFileNameEditor.cs
- NestPullup.cs
- WsatServiceAddress.cs
- WaitHandleCannotBeOpenedException.cs
- PrimitiveSchema.cs
- CompositeTypefaceMetrics.cs
- TrackingStringDictionary.cs
- Simplifier.cs
- MessageAction.cs
- VisualBasicSettingsHandler.cs
- SerialReceived.cs
- ConfigurationLocationCollection.cs
- CanonicalXml.cs
- Types.cs
- QilReference.cs
- CodeThrowExceptionStatement.cs
- MsmqMessageProperty.cs
- ExpressionConverter.cs
- SqlClientFactory.cs
- ListControlConvertEventArgs.cs
- BinaryMethodMessage.cs
- MatrixValueSerializer.cs
- ArrayList.cs
- CodePageUtils.cs
- IsolatedStorageFile.cs
- HtmlInputCheckBox.cs
- ModelItemDictionaryImpl.cs
- TemplateField.cs
- XmlDeclaration.cs
- WhitespaceRuleLookup.cs
- TaiwanLunisolarCalendar.cs
- TreeNodeBinding.cs