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
- FactoryGenerator.cs
- ExceptionHandler.cs
- PropertyGridEditorPart.cs
- Rotation3D.cs
- EntityDataSourceMemberPath.cs
- WebUtil.cs
- RadioButtonAutomationPeer.cs
- ElementUtil.cs
- FixedSOMGroup.cs
- SoundPlayerAction.cs
- ALinqExpressionVisitor.cs
- TrackingQueryElement.cs
- PathFigure.cs
- WebPartManager.cs
- RegexRunnerFactory.cs
- SortQuery.cs
- ObjectViewFactory.cs
- PropertyPushdownHelper.cs
- InlineCollection.cs
- BaseCAMarshaler.cs
- MethodRental.cs
- ProfileService.cs
- ContentTextAutomationPeer.cs
- CommonGetThemePartSize.cs
- Label.cs
- FontSourceCollection.cs
- ConfigurationLocation.cs
- RevocationPoint.cs
- HttpWebResponse.cs
- EntityDataSourceWrapper.cs
- SimpleTypeResolver.cs
- Effect.cs
- RepeaterItemCollection.cs
- OracleColumn.cs
- SslStream.cs
- SecurityCriticalDataForSet.cs
- ActivityMarkupSerializer.cs
- DataSourceControlBuilder.cs
- ToolStripRenderer.cs
- ConnectionPointCookie.cs
- ZipIOCentralDirectoryFileHeader.cs
- CompareInfo.cs
- ParserStreamGeometryContext.cs
- XmlDataSource.cs
- FormViewModeEventArgs.cs
- ValueType.cs
- TemplateContainer.cs
- Semaphore.cs
- ManagedIStream.cs
- sapiproxy.cs
- ActivityExecutionContext.cs
- ContentPosition.cs
- PathSegment.cs
- SecurityUtils.cs
- ItemList.cs
- PropertyChangeTracker.cs
- ChildChangedEventArgs.cs
- TypeLoadException.cs
- SByteConverter.cs
- BlockingCollection.cs
- ArrayTypeMismatchException.cs
- WindowsStatic.cs
- MeasurementDCInfo.cs
- ExpressionVisitor.cs
- ConcurrentBag.cs
- PagedDataSource.cs
- SmtpReplyReader.cs
- MemberRelationshipService.cs
- UnorderedHashRepartitionStream.cs
- ProjectionNode.cs
- TagElement.cs
- HtmlPhoneCallAdapter.cs
- Pen.cs
- HostedTransportConfigurationManager.cs
- DataObjectMethodAttribute.cs
- RelationshipSet.cs
- IPHostEntry.cs
- QueryStatement.cs
- IndexerNameAttribute.cs
- DefaultValueTypeConverter.cs
- TextInfo.cs
- IPCCacheManager.cs
- SemaphoreFullException.cs
- InstancePersistenceEvent.cs
- FrameworkEventSource.cs
- DataGridViewDataConnection.cs
- WebPartVerbCollection.cs
- HwndProxyElementProvider.cs
- DictionaryTraceRecord.cs
- FunctionImportElement.cs
- Substitution.cs
- M3DUtil.cs
- UpdateRecord.cs
- WindowsFormsHostAutomationPeer.cs
- DataGridViewCellStyle.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- InstallerTypeAttribute.cs
- TypeExtensions.cs
- EmptyStringExpandableObjectConverter.cs
- WebPartUserCapability.cs