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
- StandardOleMarshalObject.cs
- BehaviorEditorPart.cs
- MetadataArtifactLoaderCompositeFile.cs
- TaskbarItemInfo.cs
- Rotation3DAnimationBase.cs
- _ScatterGatherBuffers.cs
- AnimationLayer.cs
- IconConverter.cs
- TabItem.cs
- AttachmentCollection.cs
- EarlyBoundInfo.cs
- OleDbSchemaGuid.cs
- AttachedAnnotation.cs
- XmlSortKeyAccumulator.cs
- FragmentQuery.cs
- WebConfigurationManager.cs
- PermissionListSet.cs
- EntityDataSourceChangingEventArgs.cs
- DetailsViewDesigner.cs
- InputReport.cs
- WebOperationContext.cs
- XmlSerializerFactory.cs
- KeyGestureValueSerializer.cs
- ImageSource.cs
- DbBuffer.cs
- DATA_BLOB.cs
- DataGridViewHitTestInfo.cs
- DoubleKeyFrameCollection.cs
- ColorMap.cs
- DbMetaDataColumnNames.cs
- FilteredDataSetHelper.cs
- ICspAsymmetricAlgorithm.cs
- HtmlElementEventArgs.cs
- TileBrush.cs
- PlainXmlWriter.cs
- SchemaAttDef.cs
- FreezableOperations.cs
- SQLMembershipProvider.cs
- CircleHotSpot.cs
- WpfMemberInvoker.cs
- ErrorEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- MessageLoggingElement.cs
- PtsHelper.cs
- MiniConstructorInfo.cs
- ColumnBinding.cs
- Win32Exception.cs
- Int64Converter.cs
- MediaElementAutomationPeer.cs
- CodePrimitiveExpression.cs
- SecurityManager.cs
- safelink.cs
- BaseParaClient.cs
- WebPartDisplayModeCancelEventArgs.cs
- _DisconnectOverlappedAsyncResult.cs
- _BasicClient.cs
- RefExpr.cs
- MasterPage.cs
- RemoteWebConfigurationHostStream.cs
- DelayedRegex.cs
- WindowsFont.cs
- IPipelineRuntime.cs
- SettingsContext.cs
- TrackingStringDictionary.cs
- DeploymentSectionCache.cs
- LassoSelectionBehavior.cs
- ExpressionBuilderCollection.cs
- UTF32Encoding.cs
- HtmlValidatorAdapter.cs
- OdbcStatementHandle.cs
- GeneralTransform3D.cs
- StrongName.cs
- SparseMemoryStream.cs
- ClaimComparer.cs
- WebPartConnectionsCancelEventArgs.cs
- VBCodeProvider.cs
- Ipv6Element.cs
- WmlLinkAdapter.cs
- DataFieldConverter.cs
- ExpressionDumper.cs
- COM2AboutBoxPropertyDescriptor.cs
- XmlTextReaderImpl.cs
- AnonymousIdentificationSection.cs
- COAUTHINFO.cs
- TcpTransportBindingElement.cs
- GroupBoxAutomationPeer.cs
- FormsAuthenticationUser.cs
- PreviewKeyDownEventArgs.cs
- SaveFileDialog.cs
- DataProtection.cs
- ServiceRoute.cs
- ActivityDesignerResources.cs
- TextCharacters.cs
- FontDifferentiator.cs
- WriteableBitmap.cs
- EnumUnknown.cs
- PartialArray.cs
- DateTimeFormat.cs
- ObjectReferenceStack.cs
- DoubleConverter.cs