Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SendingRequestEventArgs.cs
- RectangleHotSpot.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ToolStripContentPanelDesigner.cs
- FileSystemWatcher.cs
- WebServiceErrorEvent.cs
- DataServiceConfiguration.cs
- TdsValueSetter.cs
- DataGridComboBoxColumn.cs
- TextRangeEdit.cs
- StreamHelper.cs
- EntityTypeBase.cs
- SoapWriter.cs
- LongTypeConverter.cs
- SmtpFailedRecipientsException.cs
- RowToFieldTransformer.cs
- TreeNodeConverter.cs
- ScriptMethodAttribute.cs
- OneToOneMappingSerializer.cs
- RefreshPropertiesAttribute.cs
- _SslStream.cs
- ConfigurationManager.cs
- DataStreamFromComStream.cs
- ChannelBinding.cs
- StringConcat.cs
- AuthenticatedStream.cs
- XmlSchemaProviderAttribute.cs
- TextServicesHost.cs
- CurrentTimeZone.cs
- CryptoApi.cs
- XmlAttributeAttribute.cs
- EventListener.cs
- SmiEventSink.cs
- TextEditorTyping.cs
- SystemIdentity.cs
- LookupBindingPropertiesAttribute.cs
- X509CertificateStore.cs
- VisualTransition.cs
- BindToObject.cs
- ProcessHostConfigUtils.cs
- Relationship.cs
- MediaCommands.cs
- SortExpressionBuilder.cs
- TrustManager.cs
- DockAndAnchorLayout.cs
- QueryContinueDragEvent.cs
- FormViewPagerRow.cs
- IndexExpression.cs
- EnumDataContract.cs
- IdentityReference.cs
- EntityContainer.cs
- CollectionChangedEventManager.cs
- HttpFileCollection.cs
- StrongNameUtility.cs
- X509Extension.cs
- XmlTextReaderImpl.cs
- EndpointDiscoveryMetadata.cs
- HwndSubclass.cs
- XmlSchema.cs
- ToolStripDesignerAvailabilityAttribute.cs
- FormattedTextSymbols.cs
- DocumentScope.cs
- ObjectQuery.cs
- ACE.cs
- WindowPattern.cs
- BufferedGraphicsManager.cs
- ListViewGroupItemCollection.cs
- CodePageEncoding.cs
- MetadataProperty.cs
- DelegatingStream.cs
- DbConnectionPoolGroup.cs
- StringReader.cs
- ConditionValidator.cs
- ParentUndoUnit.cs
- PropertyChangedEventArgs.cs
- ProfileManager.cs
- X509ChainElement.cs
- Decoder.cs
- PeerApplicationLaunchInfo.cs
- ResourcePermissionBase.cs
- QfeChecker.cs
- RoutedCommand.cs
- DataSourceCacheDurationConverter.cs
- PathFigure.cs
- NativeCompoundFileAPIs.cs
- MobileCapabilities.cs
- HttpWrapper.cs
- XmlStringTable.cs
- AddingNewEventArgs.cs
- LockCookie.cs
- DynamicObjectAccessor.cs
- WebPartDisplayModeCancelEventArgs.cs
- SHA384.cs
- X500Name.cs
- ThicknessAnimationUsingKeyFrames.cs
- EventTrigger.cs
- NonDualMessageSecurityOverHttpElement.cs
- DataContext.cs
- DiagnosticTrace.cs
- PackWebRequest.cs