Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / processwaithandle.cs / 1 / processwaithandle.cs
using System; using System.Threading; using Microsoft.Win32; using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; namespace System.Diagnostics { internal class ProcessWaitHandle : WaitHandle { internal ProcessWaitHandle( SafeProcessHandle processHandle): base() { SafeWaitHandle waitHandle = null; bool succeeded = NativeMethods.DuplicateHandle( new HandleRef(this, NativeMethods.GetCurrentProcess()), processHandle, new HandleRef(this, NativeMethods.GetCurrentProcess()), out waitHandle, 0, false, NativeMethods.DUPLICATE_SAME_ACCESS); if (!succeeded) { Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error()); } this.SafeWaitHandle = waitHandle; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ModuleConfigurationInfo.cs
- Item.cs
- ConfigurationValidatorAttribute.cs
- ConfigurationElement.cs
- TextMetrics.cs
- TempFiles.cs
- DrawingContextFlattener.cs
- XmlDataImplementation.cs
- OleStrCAMarshaler.cs
- WebPartMenu.cs
- CFStream.cs
- XslAst.cs
- UrlMappingsModule.cs
- CollectionViewProxy.cs
- ContentPosition.cs
- PriorityRange.cs
- RIPEMD160.cs
- EntityClassGenerator.cs
- ExpressionTable.cs
- GroupBoxRenderer.cs
- ServiceDesigner.cs
- SystemInfo.cs
- BuildProvider.cs
- PointLight.cs
- SerTrace.cs
- ImportCatalogPart.cs
- DataGridViewDataConnection.cs
- ResourceAssociationTypeEnd.cs
- HtmlFormParameterWriter.cs
- Attribute.cs
- CommandValueSerializer.cs
- ContactManager.cs
- MailHeaderInfo.cs
- XmlSignatureManifest.cs
- TabControlCancelEvent.cs
- SimpleMailWebEventProvider.cs
- ProgressiveCrcCalculatingStream.cs
- ValidationRuleCollection.cs
- Hex.cs
- ParallelLoopState.cs
- UnicodeEncoding.cs
- MediaTimeline.cs
- dtdvalidator.cs
- BinHexDecoder.cs
- TableSectionStyle.cs
- XmlSchemaInclude.cs
- SystemException.cs
- PlacementWorkspace.cs
- DataGridViewAdvancedBorderStyle.cs
- SafeRightsManagementPubHandle.cs
- TemplateEditingFrame.cs
- HtmlValidationSummaryAdapter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SecurityRuntime.cs
- ConfigPathUtility.cs
- AllMembershipCondition.cs
- CombinedGeometry.cs
- LocalValueEnumerator.cs
- ExclusiveTcpTransportManager.cs
- MULTI_QI.cs
- Color.cs
- SymmetricAlgorithm.cs
- Wildcard.cs
- Crc32.cs
- WorkflowQueue.cs
- TimerElapsedEvenArgs.cs
- AppearanceEditorPart.cs
- ReflectionTypeLoadException.cs
- BitmapSizeOptions.cs
- DefaultMergeHelper.cs
- SourceChangedEventArgs.cs
- KeyManager.cs
- UTF32Encoding.cs
- TransformProviderWrapper.cs
- WebServicesDescriptionAttribute.cs
- StructuredCompositeActivityDesigner.cs
- InvalidPipelineStoreException.cs
- ListBindingConverter.cs
- SafeViewOfFileHandle.cs
- HttpWebRequestElement.cs
- DBConcurrencyException.cs
- TreeNodeConverter.cs
- XmlAnyAttributeAttribute.cs
- Clock.cs
- BuildProvider.cs
- SqlDataSourceCache.cs
- AssemblyAssociatedContentFileAttribute.cs
- KeyedQueue.cs
- DataGridViewSortCompareEventArgs.cs
- HwndHostAutomationPeer.cs
- ExtractedStateEntry.cs
- PersonalizationEntry.cs
- InputProcessorProfiles.cs
- TreeViewHitTestInfo.cs
- DesigntimeLicenseContextSerializer.cs
- SimpleBitVector32.cs
- DetailsViewModeEventArgs.cs
- ListViewTableRow.cs
- XamlParser.cs
- PersianCalendar.cs