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
- RuleRefElement.cs
- NavigationPropertyEmitter.cs
- ChunkedMemoryStream.cs
- Action.cs
- _ListenerResponseStream.cs
- Guid.cs
- PickBranchDesigner.xaml.cs
- CodeSubDirectory.cs
- DataServiceHost.cs
- HttpDebugHandler.cs
- NativeCompoundFileAPIs.cs
- ValueChangedEventManager.cs
- LineSegment.cs
- SettingsBase.cs
- DataGridState.cs
- SecurityUtils.cs
- CharacterShapingProperties.cs
- QueryStringHandler.cs
- DataGridViewUtilities.cs
- StickyNoteHelper.cs
- WebPartCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- StorageMappingItemLoader.cs
- DataGridViewCellPaintingEventArgs.cs
- HtmlControl.cs
- WindowsServiceElement.cs
- GlobalizationSection.cs
- SatelliteContractVersionAttribute.cs
- LookupNode.cs
- PathSegmentCollection.cs
- SynchronizedInputHelper.cs
- ConfigXmlReader.cs
- SystemException.cs
- FileAuthorizationModule.cs
- BufferedStream.cs
- EntityClassGenerator.cs
- SystemException.cs
- BindStream.cs
- PageSettings.cs
- PreviewKeyDownEventArgs.cs
- RtfControls.cs
- DataServiceExpressionVisitor.cs
- AppLevelCompilationSectionCache.cs
- DecimalConverter.cs
- HttpResponseInternalWrapper.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- HttpPostLocalhostServerProtocol.cs
- JumpList.cs
- TextHintingModeValidation.cs
- UserPreferenceChangingEventArgs.cs
- AppDomainShutdownMonitor.cs
- figurelength.cs
- PropertyNames.cs
- securitycriticaldataClass.cs
- BufferedStream.cs
- PathNode.cs
- CurrentChangingEventManager.cs
- PenThreadWorker.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SoapCommonClasses.cs
- ErrorHandlerModule.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SmtpException.cs
- followingsibling.cs
- EntityModelBuildProvider.cs
- RegistryPermission.cs
- CodeDomExtensionMethods.cs
- Viewport3DAutomationPeer.cs
- TagPrefixInfo.cs
- JsonQueryStringConverter.cs
- _SafeNetHandles.cs
- MdbDataFileEditor.cs
- TextElementCollection.cs
- StreamInfo.cs
- GeneratedView.cs
- CachedTypeface.cs
- DataObjectMethodAttribute.cs
- ContextMarshalException.cs
- SwitchExpression.cs
- HostingEnvironmentSection.cs
- BindingsCollection.cs
- ValidationRuleCollection.cs
- MemoryPressure.cs
- WindowsRichEditRange.cs
- XmlSerializerVersionAttribute.cs
- IdleTimeoutMonitor.cs
- SqlInfoMessageEvent.cs
- SegmentTree.cs
- ValueQuery.cs
- CustomAttribute.cs
- Repeater.cs
- XmlC14NWriter.cs
- UserPersonalizationStateInfo.cs
- SyndicationFeed.cs
- DataControlField.cs
- ListManagerBindingsCollection.cs
- TreeIterators.cs
- TimeZone.cs
- _NegoStream.cs
- PropertyTabAttribute.cs