Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLRoleProvider.cs
- StringStorage.cs
- DBAsyncResult.cs
- Rectangle.cs
- ToolStripRenderEventArgs.cs
- OleDbRowUpdatingEvent.cs
- CryptoApi.cs
- CopyNodeSetAction.cs
- TransactionChannelFactory.cs
- XmlMembersMapping.cs
- FileDetails.cs
- TypeSystem.cs
- Delegate.cs
- DetailsView.cs
- Zone.cs
- SwitchElementsCollection.cs
- PropertyGridCommands.cs
- DESCryptoServiceProvider.cs
- GlyphRunDrawing.cs
- TextFindEngine.cs
- _ContextAwareResult.cs
- XmlSchemaSimpleContentRestriction.cs
- IPGlobalProperties.cs
- FixedTextView.cs
- TextSelectionProcessor.cs
- SetterBaseCollection.cs
- WorkflowInstanceAbortedRecord.cs
- Misc.cs
- PointKeyFrameCollection.cs
- QilTernary.cs
- ZipPackagePart.cs
- PersonalizationState.cs
- TableLayoutCellPaintEventArgs.cs
- ConfigXmlWhitespace.cs
- PageScaling.cs
- DataBindingExpressionBuilder.cs
- ParameterToken.cs
- ImplicitInputBrush.cs
- NumericUpDown.cs
- XMLUtil.cs
- RuleSettings.cs
- CodeIndexerExpression.cs
- InvalidOperationException.cs
- XamlSerializerUtil.cs
- SoapAttributeAttribute.cs
- XslAst.cs
- InternalBufferOverflowException.cs
- Utils.cs
- IDictionary.cs
- SoapProcessingBehavior.cs
- LocalBuilder.cs
- FilterEventArgs.cs
- _IPv4Address.cs
- JournalNavigationScope.cs
- Item.cs
- XPathDocumentIterator.cs
- SimpleWebHandlerParser.cs
- DBSchemaTable.cs
- TwoPhaseCommit.cs
- validation.cs
- OnOperation.cs
- ScopeCollection.cs
- TextSelectionHelper.cs
- ProtocolState.cs
- SQLGuidStorage.cs
- SvcMapFileSerializer.cs
- Size3DConverter.cs
- SrgsItemList.cs
- SQlBooleanStorage.cs
- FileAuthorizationModule.cs
- XmlStringTable.cs
- GZipStream.cs
- UnsafeNativeMethods.cs
- ComponentCollection.cs
- StylusPointPropertyUnit.cs
- ScriptBehaviorDescriptor.cs
- ComponentEditorPage.cs
- Rect3DValueSerializer.cs
- BulletChrome.cs
- AutomationIdentifierGuids.cs
- ClientTargetCollection.cs
- RequestCachePolicyConverter.cs
- AuthenticationException.cs
- DefinitionUpdate.cs
- ConstructorNeedsTagAttribute.cs
- StatusStrip.cs
- DBBindings.cs
- StoreContentChangedEventArgs.cs
- BaseComponentEditor.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PropertyConverter.cs
- ResourceAssociationSet.cs
- propertytag.cs
- AssemblySettingAttributes.cs
- SqlBinder.cs
- AssemblyHash.cs
- StateMachineTimers.cs
- ServiceModelActivity.cs
- ComboBoxRenderer.cs
- RadioButtonAutomationPeer.cs