NativeMethods.DuplicateHandle, méthode
Ce type a un attribut SecurityCriticalAttribute, qui le limite à un usage interne par la bibliothèque de classes .NET Framework pour Silverlight. Un code d'application qui utilise un membre de ce type lève une exception MethodAccessException.
Espace de noms : Microsoft.TeamFoundation.Common.Internal
Assembly : Microsoft.TeamFoundation.Common (dans Microsoft.TeamFoundation.Common.dll)
Syntaxe
'Déclaration
Public Shared Function DuplicateHandle ( _
hSourceProcessHandle As HandleRef, _
hSourceHandle As SafeHandle, _
hTargetProcessHandle As HandleRef, _
<OutAttribute> ByRef lpTargetHandle As IntPtr, _
dwDesiredAccess As UInteger, _
bInheritHandle As Boolean, _
dwOptions As UInteger _
) As Boolean
public static bool DuplicateHandle(
HandleRef hSourceProcessHandle,
SafeHandle hSourceHandle,
HandleRef hTargetProcessHandle,
out IntPtr lpTargetHandle,
uint dwDesiredAccess,
bool bInheritHandle,
uint dwOptions
)
Paramètres
- hSourceProcessHandle
Type : System.Runtime.InteropServices.HandleRef
- hSourceHandle
Type : System.Runtime.InteropServices.SafeHandle
- hTargetProcessHandle
Type : System.Runtime.InteropServices.HandleRef
- lpTargetHandle
Type : System.IntPtr%
- dwDesiredAccess
Type : System.UInt32
- bInheritHandle
Type : System.Boolean
- dwOptions
Type : System.UInt32
Valeur de retour
Type : System.Boolean