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
- CorePropertiesFilter.cs
- InvalidOperationException.cs
- Speller.cs
- MimeImporter.cs
- LineServicesRun.cs
- NonSerializedAttribute.cs
- InputEventArgs.cs
- LinqDataSourceSelectEventArgs.cs
- HighlightVisual.cs
- UntypedNullExpression.cs
- XmlSchemaChoice.cs
- DbConnectionOptions.cs
- SafeSecurityHandles.cs
- PasswordRecovery.cs
- TimersDescriptionAttribute.cs
- PointAnimationClockResource.cs
- ClientSideQueueItem.cs
- XmlReaderSettings.cs
- SimpleColumnProvider.cs
- DiagnosticStrings.cs
- PropagatorResult.cs
- securestring.cs
- JsonUriDataContract.cs
- SimpleHandlerFactory.cs
- Ray3DHitTestResult.cs
- RunInstallerAttribute.cs
- ExpressionTextBox.xaml.cs
- Calendar.cs
- Shape.cs
- SQLDecimal.cs
- SafeViewOfFileHandle.cs
- CommonDialog.cs
- ConfigDefinitionUpdates.cs
- DesignTimeTemplateParser.cs
- GeneralTransformGroup.cs
- ValidationError.cs
- Delegate.cs
- EmptyStringExpandableObjectConverter.cs
- WebDisplayNameAttribute.cs
- NativeMsmqMessage.cs
- DynamicVirtualDiscoSearcher.cs
- SplineKeyFrames.cs
- PrintingPermission.cs
- Message.cs
- DataGridViewRowHeaderCell.cs
- EventData.cs
- ComponentEditorPage.cs
- PartialArray.cs
- DataBindingsDialog.cs
- WriteTimeStream.cs
- SqlProcedureAttribute.cs
- Point.cs
- Stack.cs
- HttpStreamMessage.cs
- Logging.cs
- DataBindingHandlerAttribute.cs
- InternalDuplexChannelFactory.cs
- TextTreeDeleteContentUndoUnit.cs
- TemplatePagerField.cs
- PolicyException.cs
- X509PeerCertificateAuthenticationElement.cs
- DataSourceViewSchemaConverter.cs
- configsystem.cs
- Socket.cs
- SubMenuStyle.cs
- TextServicesCompartmentEventSink.cs
- Comparer.cs
- PageCatalogPartDesigner.cs
- ScrollBar.cs
- BooleanAnimationUsingKeyFrames.cs
- WebServicesInteroperability.cs
- ClosableStream.cs
- ProfileGroupSettingsCollection.cs
- ItemChangedEventArgs.cs
- ImageUrlEditor.cs
- RotateTransform3D.cs
- DrawingServices.cs
- RemotingServices.cs
- XmlTextReaderImpl.cs
- CopyOfAction.cs
- InternalBase.cs
- MulticastDelegate.cs
- SchemaElementLookUpTable.cs
- DataGridAutoFormatDialog.cs
- PersonalizablePropertyEntry.cs
- TdsParserStaticMethods.cs
- ObjectSecurity.cs
- xml.cs
- NetPipeSectionData.cs
- TCPClient.cs
- HostVisual.cs
- ByteStack.cs
- XmlNodeComparer.cs
- CapabilitiesAssignment.cs
- CheckBoxList.cs
- UInt32Converter.cs
- ObjectHandle.cs
- StateMachineWorkflowInstance.cs
- TrackPointCollection.cs
- LinkClickEvent.cs