Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- CodeMethodReturnStatement.cs
- sqlmetadatafactory.cs
- FormViewUpdateEventArgs.cs
- BamlLocalizabilityResolver.cs
- BitmapMetadata.cs
- LogWriteRestartAreaAsyncResult.cs
- MenuItem.cs
- DataList.cs
- ConfigXmlWhitespace.cs
- CounterSample.cs
- SecurityPolicySection.cs
- ListBoxDesigner.cs
- LoggedException.cs
- SqlBuffer.cs
- CompModSwitches.cs
- TextTreeFixupNode.cs
- MasterPage.cs
- MetabaseSettingsIis7.cs
- FormatterConverter.cs
- SafeViewOfFileHandle.cs
- RegexGroupCollection.cs
- SecurityHelper.cs
- OutArgumentConverter.cs
- DataGridViewComboBoxCell.cs
- CodeArrayCreateExpression.cs
- ApplicationServiceManager.cs
- HashSetEqualityComparer.cs
- MulticastDelegate.cs
- ProcessHost.cs
- AliasExpr.cs
- WindowsTitleBar.cs
- Empty.cs
- PointUtil.cs
- QueryCacheManager.cs
- ConnectionsZone.cs
- ExceptionHandlersDesigner.cs
- OleDbConnectionFactory.cs
- CommandEventArgs.cs
- SingleSelectRootGridEntry.cs
- DesignerActionUIStateChangeEventArgs.cs
- FlowSwitchDesigner.xaml.cs
- HttpResponse.cs
- HtmlTableCellCollection.cs
- Emitter.cs
- GridViewUpdateEventArgs.cs
- BufferBuilder.cs
- ScrollProviderWrapper.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- TextSearch.cs
- OperationCanceledException.cs
- FontEmbeddingManager.cs
- KeyedHashAlgorithm.cs
- CatalogPart.cs
- XmlSchemaInclude.cs
- SQLBinaryStorage.cs
- StylusButtonCollection.cs
- SourceInterpreter.cs
- HttpProxyCredentialType.cs
- TableItemStyle.cs
- AuthenticationModulesSection.cs
- SmtpLoginAuthenticationModule.cs
- PropertyPushdownHelper.cs
- MatrixTransform3D.cs
- WrapPanel.cs
- DataGrid.cs
- ListChangedEventArgs.cs
- KerberosSecurityTokenProvider.cs
- GlobalProxySelection.cs
- SqlRowUpdatingEvent.cs
- DataGridColumn.cs
- SQLCharsStorage.cs
- CodeCompiler.cs
- SingleSelectRootGridEntry.cs
- SortExpressionBuilder.cs
- MouseCaptureWithinProperty.cs
- WindowsToolbarAsMenu.cs
- XomlCompilerHelpers.cs
- MobileControlsSectionHelper.cs
- UIntPtr.cs
- AmbientLight.cs
- FormViewCommandEventArgs.cs
- BitStack.cs
- ExtensionElementCollection.cs
- CodeAssignStatement.cs
- CodeNamespaceImport.cs
- Fonts.cs
- LambdaCompiler.Logical.cs
- ExtendedTransformFactory.cs
- SettingsAttributes.cs
- ChildDocumentBlock.cs
- AnimationTimeline.cs
- PrivilegeNotHeldException.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- BindingMemberInfo.cs
- BaseTemplateParser.cs
- ServiceDescriptionImporter.cs
- KoreanCalendar.cs
- FocusChangedEventArgs.cs
- ThreadStartException.cs
- Internal.cs