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
- DecoderNLS.cs
- StoryFragments.cs
- Propagator.JoinPropagator.cs
- ContextMenuService.cs
- TabItem.cs
- CheckableControlBaseAdapter.cs
- HiddenFieldPageStatePersister.cs
- StateManagedCollection.cs
- TraceShell.cs
- BulletedListDesigner.cs
- FlowDocumentReader.cs
- StreamBodyWriter.cs
- DeadCharTextComposition.cs
- SystemWebSectionGroup.cs
- XhtmlBasicSelectionListAdapter.cs
- EdmValidator.cs
- RNGCryptoServiceProvider.cs
- DelayDesigner.cs
- QueryUtil.cs
- ComAdminWrapper.cs
- SecurityUtils.cs
- IdentitySection.cs
- BoundField.cs
- CurrentChangingEventManager.cs
- RpcResponse.cs
- pingexception.cs
- EditorPartChrome.cs
- WebBrowserSiteBase.cs
- FormParameter.cs
- LayoutSettings.cs
- AnimationTimeline.cs
- NameTable.cs
- XdrBuilder.cs
- TextWriterTraceListener.cs
- IgnoreSectionHandler.cs
- ObjectPersistData.cs
- SqlConnectionManager.cs
- Subset.cs
- WindowsFont.cs
- OletxTransactionManager.cs
- TemplateInstanceAttribute.cs
- ObjectNotFoundException.cs
- PolicyLevel.cs
- DataTableReader.cs
- XsltSettings.cs
- StaticFileHandler.cs
- MimeBasePart.cs
- Figure.cs
- ParameterExpression.cs
- ContainerParaClient.cs
- FunctionMappingTranslator.cs
- InputScopeAttribute.cs
- GraphicsState.cs
- FileSystemWatcher.cs
- CustomError.cs
- ObjectComplexPropertyMapping.cs
- Page.cs
- RepeatInfo.cs
- ModelUIElement3D.cs
- Brush.cs
- DataRecordInfo.cs
- FramingChannels.cs
- CorrelationValidator.cs
- ChannelSinkStacks.cs
- ApplicationSecurityManager.cs
- HybridWebProxyFinder.cs
- SafeLocalMemHandle.cs
- DataGridViewLinkColumn.cs
- LocalValueEnumerator.cs
- UxThemeWrapper.cs
- SupportsEventValidationAttribute.cs
- TextBoxBase.cs
- HostProtectionException.cs
- ColorIndependentAnimationStorage.cs
- DependencyPropertyKind.cs
- GridItem.cs
- MenuAutomationPeer.cs
- WebBrowserDesigner.cs
- EncryptedData.cs
- EditingCommands.cs
- NodeLabelEditEvent.cs
- RuntimeConfig.cs
- PasswordBoxAutomationPeer.cs
- HtmlInputControl.cs
- AssignDesigner.xaml.cs
- XmlSchemaImport.cs
- SafeThemeHandle.cs
- LocationUpdates.cs
- X509Utils.cs
- PageThemeParser.cs
- WebResourceAttribute.cs
- ZipIOExtraField.cs
- sqlmetadatafactory.cs
- CompilerCollection.cs
- TextServicesDisplayAttributePropertyRanges.cs
- MetadataSource.cs
- TypeBrowserDialog.cs
- ListItemParagraph.cs
- SqlRowUpdatingEvent.cs
- CreateWorkflowOwnerCommand.cs