Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / SafeNativeMethods.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpMail.cs
- ConfigUtil.cs
- BooleanAnimationBase.cs
- StylesEditorDialog.cs
- ConfigUtil.cs
- BodyGlyph.cs
- ItemAutomationPeer.cs
- NotImplementedException.cs
- Int32KeyFrameCollection.cs
- StagingAreaInputItem.cs
- ServiceContractAttribute.cs
- Matrix3DConverter.cs
- DynamicValidatorEventArgs.cs
- TransformerInfo.cs
- ContentFilePart.cs
- Win32.cs
- IndependentAnimationStorage.cs
- PermissionListSet.cs
- HttpSessionStateWrapper.cs
- ExpressionBuilder.cs
- MeshGeometry3D.cs
- EmitterCache.cs
- Italic.cs
- NegationPusher.cs
- DesignerDataSourceView.cs
- FormsAuthentication.cs
- CornerRadius.cs
- EdmProperty.cs
- ToolStripManager.cs
- PhysicalOps.cs
- DiagnosticTraceRecords.cs
- ResourcesGenerator.cs
- LostFocusEventManager.cs
- RepeatInfo.cs
- StringHandle.cs
- IsolatedStoragePermission.cs
- StatusBarPanel.cs
- Win32PrintDialog.cs
- ByteArrayHelperWithString.cs
- GeneratedView.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SectionRecord.cs
- PreDigestedSignedInfo.cs
- XmlIgnoreAttribute.cs
- VectorValueSerializer.cs
- ForEachAction.cs
- DbConnectionPoolGroupProviderInfo.cs
- PeerNeighborManager.cs
- MasterPage.cs
- securitymgrsite.cs
- embossbitmapeffect.cs
- PhysicalAddress.cs
- ExpressionBindingCollection.cs
- WebPartTransformerAttribute.cs
- ConfigurationException.cs
- OutputScopeManager.cs
- loginstatus.cs
- WeakReferenceEnumerator.cs
- Validator.cs
- ComponentConverter.cs
- messageonlyhwndwrapper.cs
- IsolatedStoragePermission.cs
- CheckBoxField.cs
- ReflectTypeDescriptionProvider.cs
- ChildTable.cs
- SchemaImporterExtensionElement.cs
- JsonServiceDocumentSerializer.cs
- InvalidPipelineStoreException.cs
- DecoderReplacementFallback.cs
- UrlRoutingModule.cs
- WebDescriptionAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- IListConverters.cs
- KeyedHashAlgorithm.cs
- ObjectTypeMapping.cs
- OleDbError.cs
- XmlNode.cs
- MetadataPropertyCollection.cs
- XmlRootAttribute.cs
- ScriptControl.cs
- RegexCompilationInfo.cs
- GradientStop.cs
- CapacityStreamGeometryContext.cs
- File.cs
- GenericWebPart.cs
- CodeEntryPointMethod.cs
- Label.cs
- ExpressionList.cs
- PropertyChangingEventArgs.cs
- ValueTypeFixupInfo.cs
- BigInt.cs
- CodeObjectCreateExpression.cs
- XmlAttribute.cs
- ParseHttpDate.cs
- EventDescriptor.cs
- Matrix.cs
- SimpleWebHandlerParser.cs
- DataListComponentEditor.cs
- IisTraceListener.cs
- HtmlString.cs