Code:
/ DotNET / DotNET / 8.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
- TextServicesCompartment.cs
- ConfigXmlWhitespace.cs
- FixedSOMPageConstructor.cs
- BitmapEffectGroup.cs
- LeaseManager.cs
- ExpandCollapsePattern.cs
- TextViewElement.cs
- ManagedCodeMarkers.cs
- InstanceCreationEditor.cs
- ListViewContainer.cs
- Missing.cs
- BmpBitmapEncoder.cs
- BuiltInExpr.cs
- ADMembershipUser.cs
- RegexMatch.cs
- TextBoxBase.cs
- DirectionalLight.cs
- ToolStripContainer.cs
- DesignerTransactionCloseEvent.cs
- StrokeSerializer.cs
- SafeHandle.cs
- DecoderReplacementFallback.cs
- ExceptionValidationRule.cs
- WithParamAction.cs
- FontDialog.cs
- InkCanvasAutomationPeer.cs
- WindowInteractionStateTracker.cs
- ColorBuilder.cs
- CodeAssignStatement.cs
- SmtpAuthenticationManager.cs
- GZipUtils.cs
- SequenceDesigner.xaml.cs
- TextServicesProperty.cs
- ToolTipAutomationPeer.cs
- HtmlInputRadioButton.cs
- ParameterReplacerVisitor.cs
- ArrangedElementCollection.cs
- ExitEventArgs.cs
- X509SecurityToken.cs
- NextPreviousPagerField.cs
- SchemaCollectionCompiler.cs
- DataPagerFieldCollection.cs
- SecureStringHasher.cs
- ThrowHelper.cs
- UdpTransportSettings.cs
- XPathSelectionIterator.cs
- DbBuffer.cs
- WindowsMenu.cs
- SessionPageStateSection.cs
- DllNotFoundException.cs
- HttpRequestWrapper.cs
- RectAnimationClockResource.cs
- ProcessInfo.cs
- CheckBoxPopupAdapter.cs
- SafeLibraryHandle.cs
- XmlObjectSerializerWriteContextComplex.cs
- EventMap.cs
- MULTI_QI.cs
- MarshalByRefObject.cs
- WebPartZone.cs
- JsonReaderDelegator.cs
- Utils.cs
- RegexCode.cs
- RuntimeConfigLKG.cs
- MarshalByValueComponent.cs
- QueryUtil.cs
- ListViewHitTestInfo.cs
- XsdSchemaFileEditor.cs
- CornerRadiusConverter.cs
- BrowserCapabilitiesFactoryBase.cs
- ToolStripOverflow.cs
- ContextActivityUtils.cs
- DataGridViewTopRowAccessibleObject.cs
- DataGrid.cs
- ResXBuildProvider.cs
- ObjRef.cs
- ClientRolePrincipal.cs
- CurrencyManager.cs
- ComponentDispatcher.cs
- Emitter.cs
- BorderGapMaskConverter.cs
- XMLUtil.cs
- WindowsGraphicsWrapper.cs
- ComponentDispatcher.cs
- ValidatorCollection.cs
- CodeNamespaceImportCollection.cs
- XmlUtil.cs
- SeverityFilter.cs
- DataBoundLiteralControl.cs
- Configuration.cs
- ObjectNotFoundException.cs
- SiteMapDataSourceDesigner.cs
- ProfileProvider.cs
- XPathDocumentNavigator.cs
- ListViewCancelEventArgs.cs
- SchemaInfo.cs
- RoleBoolean.cs
- HttpResponseHeader.cs
- DataControlField.cs
- Selector.cs