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
- GuidConverter.cs
- ApplicationServiceManager.cs
- EventListener.cs
- SiteMap.cs
- x509store.cs
- InkCanvasSelection.cs
- ForAllOperator.cs
- JpegBitmapDecoder.cs
- OleDbParameter.cs
- Attributes.cs
- ControlBindingsCollection.cs
- FlowNode.cs
- ProxyHwnd.cs
- ViewManager.cs
- PerformanceCounterPermissionEntry.cs
- ApplicationProxyInternal.cs
- SystemWebSectionGroup.cs
- ListSortDescription.cs
- webeventbuffer.cs
- DbModificationCommandTree.cs
- TextBreakpoint.cs
- MarkupCompiler.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ComponentChangingEvent.cs
- EmbeddedMailObjectsCollection.cs
- PieceNameHelper.cs
- RuleSetBrowserDialog.cs
- pingexception.cs
- ScopelessEnumAttribute.cs
- SocketPermission.cs
- _AcceptOverlappedAsyncResult.cs
- SecurityElementBase.cs
- DashStyles.cs
- InternalEnumValidator.cs
- ContractListAdapter.cs
- CompositeCollection.cs
- NetworkAddressChange.cs
- HttpListenerException.cs
- SimpleBitVector32.cs
- Span.cs
- InputQueueChannelAcceptor.cs
- GC.cs
- CodeGeneratorOptions.cs
- DocumentationServerProtocol.cs
- StringUtil.cs
- ArgumentsParser.cs
- RoleManagerEventArgs.cs
- OpCopier.cs
- ParagraphResult.cs
- ByteAnimationUsingKeyFrames.cs
- WebPartHeaderCloseVerb.cs
- GlyphsSerializer.cs
- MultiByteCodec.cs
- AppDomain.cs
- Int32Storage.cs
- MaterialGroup.cs
- SingleAnimation.cs
- MergeFilterQuery.cs
- ObjectDataSourceMethodEventArgs.cs
- WebControl.cs
- QilInvokeLateBound.cs
- Vector3DAnimationBase.cs
- ListControl.cs
- CompareValidator.cs
- ScriptHandlerFactory.cs
- DateTimeConverter.cs
- InfiniteTimeSpanConverter.cs
- XmlReaderSettings.cs
- Pointer.cs
- DataRowView.cs
- HistoryEventArgs.cs
- ExtensionWindow.cs
- PeerNameResolver.cs
- DiscoveryClient.cs
- SafeNativeMethods.cs
- GridViewColumnHeader.cs
- LocalValueEnumerator.cs
- WindowCollection.cs
- ReferenceConverter.cs
- DataTableReader.cs
- PlanCompiler.cs
- InitializationEventAttribute.cs
- EntityObject.cs
- Mapping.cs
- ExpressionQuoter.cs
- Win32SafeHandles.cs
- BitStack.cs
- RecordManager.cs
- HuffmanTree.cs
- StylusPointProperties.cs
- EventLog.cs
- XmlAttributeCache.cs
- ErrorEventArgs.cs
- SqlServices.cs
- HtmlSelect.cs
- DropShadowEffect.cs
- DbInsertCommandTree.cs
- DbConnectionOptions.cs
- GeneralTransformGroup.cs
- DesignerWidgets.cs