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
- ColumnCollection.cs
- Triplet.cs
- AvTrace.cs
- TransactionManager.cs
- HtmlTernaryTree.cs
- WindowsTab.cs
- StatusBarAutomationPeer.cs
- Int64Converter.cs
- DesignerAutoFormatCollection.cs
- DeclaredTypeElementCollection.cs
- AmbientEnvironment.cs
- HitTestParameters3D.cs
- ConfigXmlWhitespace.cs
- OracleMonthSpan.cs
- GridViewHeaderRowPresenter.cs
- loginstatus.cs
- UseManagedPresentationBindingElementImporter.cs
- ToggleProviderWrapper.cs
- ActivityDesignerHelper.cs
- WeakReference.cs
- CqlLexerHelpers.cs
- ControlAdapter.cs
- ThicknessAnimation.cs
- JournalEntryStack.cs
- ApplicationHost.cs
- GPRECT.cs
- Function.cs
- TlsSspiNegotiation.cs
- AncestorChangedEventArgs.cs
- UserPersonalizationStateInfo.cs
- ClientTargetSection.cs
- DataSourceControlBuilder.cs
- HyperLinkField.cs
- MarshalDirectiveException.cs
- WebConfigurationFileMap.cs
- WebPartVerb.cs
- ResourcePermissionBaseEntry.cs
- DivideByZeroException.cs
- RightsManagementEncryptedStream.cs
- TextEditorMouse.cs
- ThicknessAnimation.cs
- FormViewDeletedEventArgs.cs
- LinqDataView.cs
- ConfigXmlCDataSection.cs
- HebrewNumber.cs
- X509UI.cs
- HtmlControl.cs
- ToolStripRenderer.cs
- CodeStatementCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- EventHandlersStore.cs
- DeploymentSection.cs
- LabelInfo.cs
- UTF7Encoding.cs
- SqlPersonalizationProvider.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- DataGridViewRowsRemovedEventArgs.cs
- ReferentialConstraint.cs
- OdbcConnectionHandle.cs
- SymmetricAlgorithm.cs
- ThousandthOfEmRealDoubles.cs
- JavaScriptSerializer.cs
- DocumentXPathNavigator.cs
- HotSpotCollectionEditor.cs
- EnumUnknown.cs
- SplitContainer.cs
- ProfileElement.cs
- LocatorManager.cs
- PaintEvent.cs
- XmlSerializationGeneratedCode.cs
- NestedContainer.cs
- CrossSiteScriptingValidation.cs
- DataGridState.cs
- HtmlShimManager.cs
- nulltextnavigator.cs
- SimpleType.cs
- TimeoutException.cs
- Stroke.cs
- XsltConvert.cs
- SchemaTableOptionalColumn.cs
- AssociatedControlConverter.cs
- ObjectRef.cs
- AudioStateChangedEventArgs.cs
- BindableAttribute.cs
- TextServicesCompartmentEventSink.cs
- BitmapEffectGroup.cs
- RenderData.cs
- RegionInfo.cs
- AmbiguousMatchException.cs
- PageCodeDomTreeGenerator.cs
- TemplateField.cs
- InkCanvasSelection.cs
- MaskedTextBoxTextEditorDropDown.cs
- EntityModelSchemaGenerator.cs
- TerminatingOperationBehavior.cs
- HtmlShimManager.cs
- DispatchWrapper.cs
- XmlAttributeAttribute.cs
- DataGridGeneralPage.cs
- ScriptIgnoreAttribute.cs