Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- MenuItem.cs
- SerializableTypeCodeDomSerializer.cs
- ButtonChrome.cs
- UserControl.cs
- brushes.cs
- AttachedProperty.cs
- DateTimeValueSerializer.cs
- GregorianCalendar.cs
- ZeroOpNode.cs
- HotSpot.cs
- DescendantOverDescendantQuery.cs
- PathStreamGeometryContext.cs
- EntitySetBase.cs
- MessageOperationFormatter.cs
- wmiprovider.cs
- FileDialog.cs
- ToolStripSplitButton.cs
- WorkflowViewService.cs
- AttachmentCollection.cs
- TextStore.cs
- TextChangedEventArgs.cs
- MergeFailedEvent.cs
- ClonableStack.cs
- DataGridViewLayoutData.cs
- DataGridViewDataErrorEventArgs.cs
- WSSecurityPolicy.cs
- SocketAddress.cs
- ParameterReplacerVisitor.cs
- BulletedListEventArgs.cs
- dtdvalidator.cs
- WebPartEditorCancelVerb.cs
- Matrix3DConverter.cs
- CellConstantDomain.cs
- WebPartConnectionCollection.cs
- ProviderCommandInfoUtils.cs
- ReachUIElementCollectionSerializerAsync.cs
- DocumentViewerBase.cs
- Token.cs
- AuthStoreRoleProvider.cs
- IndexedString.cs
- IntellisenseTextBox.cs
- WindowsListViewGroup.cs
- SecurityPermission.cs
- SelectedCellsCollection.cs
- TextEndOfLine.cs
- TypeDependencyAttribute.cs
- IntegerValidatorAttribute.cs
- DataSourceSerializationException.cs
- TransformValueSerializer.cs
- AssociatedControlConverter.cs
- MailAddressParser.cs
- EntityEntry.cs
- DebugView.cs
- MarkupCompiler.cs
- DataGridTable.cs
- SimpleColumnProvider.cs
- FormatterConverter.cs
- XmlBoundElement.cs
- QueryExpr.cs
- CustomErrorCollection.cs
- AudioBase.cs
- AspNetHostingPermission.cs
- PatternMatcher.cs
- ToolStripHighContrastRenderer.cs
- Quaternion.cs
- InternalBase.cs
- Composition.cs
- TextDecoration.cs
- BamlVersionHeader.cs
- ControlPropertyNameConverter.cs
- VectorAnimationUsingKeyFrames.cs
- CommandConverter.cs
- KeySplineConverter.cs
- HtmlEncodedRawTextWriter.cs
- StackOverflowException.cs
- HttpResponse.cs
- OracleTransaction.cs
- BoundField.cs
- TextSpanModifier.cs
- BitmapEffectInput.cs
- Int16Converter.cs
- OleStrCAMarshaler.cs
- PartialTrustHelpers.cs
- SubpageParagraph.cs
- TextServicesDisplayAttributePropertyRanges.cs
- UnsafeNativeMethodsMilCoreApi.cs
- GatewayIPAddressInformationCollection.cs
- DesignerHelpers.cs
- FakeModelPropertyImpl.cs
- SqlDataReaderSmi.cs
- SwitchAttribute.cs
- ExceptionHandlers.cs
- TextFormatterContext.cs
- MaskedTextBoxDesignerActionList.cs
- arabicshape.cs
- ComplexObject.cs
- PropertyInfoSet.cs
- WebServiceParameterData.cs
- CharacterShapingProperties.cs
- BindingExpressionBase.cs