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
- ObjectFactoryCodeDomTreeGenerator.cs
- TextTreeTextElementNode.cs
- StorageEntityContainerMapping.cs
- WebPartDeleteVerb.cs
- TextEditorCharacters.cs
- Validator.cs
- ListViewDeleteEventArgs.cs
- Setter.cs
- AppSettingsSection.cs
- AtomPub10CategoriesDocumentFormatter.cs
- FileInfo.cs
- EmptyEnumerator.cs
- ConfigurationManagerHelperFactory.cs
- SerializationSectionGroup.cs
- validationstate.cs
- GenericXmlSecurityToken.cs
- BulletedList.cs
- Stackframe.cs
- UpdatePanelTrigger.cs
- UIHelper.cs
- XmlLoader.cs
- ZipIOBlockManager.cs
- LinqDataSourceSelectEventArgs.cs
- CodeSubDirectory.cs
- CharacterMetricsDictionary.cs
- WindowsEditBoxRange.cs
- FixedSOMTableRow.cs
- SortDescriptionCollection.cs
- Parameter.cs
- Documentation.cs
- CodePrimitiveExpression.cs
- QueryUtil.cs
- HtmlInputButton.cs
- RemotingSurrogateSelector.cs
- ApplicationSecurityInfo.cs
- MD5HashHelper.cs
- TemplateColumn.cs
- Sql8ConformanceChecker.cs
- BaseTemplateParser.cs
- NetDispatcherFaultException.cs
- RC2CryptoServiceProvider.cs
- ImageIndexConverter.cs
- SafeFileMappingHandle.cs
- QuadraticEase.cs
- Transform.cs
- DrawItemEvent.cs
- AmbientLight.cs
- x509utils.cs
- ComNativeDescriptor.cs
- SystemTcpConnection.cs
- MimeTypeAttribute.cs
- Activator.cs
- StagingAreaInputItem.cs
- thaishape.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- _UriTypeConverter.cs
- PropagationProtocolsTracing.cs
- QueryOutputWriter.cs
- ModuleBuilder.cs
- XmlSchemaCompilationSettings.cs
- OwnerDrawPropertyBag.cs
- SequenceFullException.cs
- DbXmlEnabledProviderManifest.cs
- Frame.cs
- CounterCreationData.cs
- UdpReplyToBehavior.cs
- SynchronousChannelMergeEnumerator.cs
- WindowsToolbar.cs
- documentsequencetextcontainer.cs
- ChannelManager.cs
- PerspectiveCamera.cs
- HMAC.cs
- TextRangeBase.cs
- SourceChangedEventArgs.cs
- EffectiveValueEntry.cs
- ConfigurationElement.cs
- WindowsGraphicsWrapper.cs
- X509ChainPolicy.cs
- ClientApiGenerator.cs
- Padding.cs
- DataContractSerializerOperationBehavior.cs
- ComponentGlyph.cs
- ContextQuery.cs
- DataContext.cs
- ActivityPropertyReference.cs
- XNodeNavigator.cs
- StopStoryboard.cs
- ItemDragEvent.cs
- TypeGeneratedEventArgs.cs
- XmlSchemaObjectCollection.cs
- ClientSideProviderDescription.cs
- ComContractElementCollection.cs
- ProjectionCamera.cs
- MsmqIntegrationChannelListener.cs
- WsiProfilesElementCollection.cs
- WebResponse.cs
- CollectionType.cs
- EnumerableRowCollectionExtensions.cs
- DataGridItemCollection.cs
- XmlSchemaComplexContentExtension.cs