Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Este tipo tiene un atributo SecurityCriticalAttribute que lo restringe para uso interno de .NET Framework para la biblioteca de clases de Silverlight. El código de aplicación que usa un miembro de este tipo produce una excepción MethodAccessException.
Espacio de nombres: Microsoft.TeamFoundation.Common.Internal
Ensamblado: Microsoft.TeamFoundation.Common (en Microsoft.TeamFoundation.Common.dll)
Sintaxis
'Declaración
Public Shared Function CreateProcessAsUser ( _
hToken As IntPtr, _
lpApplicationName As String, _
lpCommandLine As String, _
ByRef lpProcessAttributes As NativeMethods.SECURITY_ATTRIBUTES, _
ByRef lpThreadAttributes As NativeMethods.SECURITY_ATTRIBUTES, _
bInheritHandle As Boolean, _
dwCreationFlags As UInteger, _
lpEnvironment As IntPtr, _
lpCurrentDirectory As String, _
ByRef lpStartupInfo As NativeMethods.STARTUPINFO, _
<OutAttribute> ByRef lpProcessInformation As NativeMethods.PROCESS_INFORMATION _
) As Boolean
public static bool CreateProcessAsUser(
IntPtr hToken,
string lpApplicationName,
string lpCommandLine,
ref NativeMethods.SECURITY_ATTRIBUTES lpProcessAttributes,
ref NativeMethods.SECURITY_ATTRIBUTES lpThreadAttributes,
bool bInheritHandle,
uint dwCreationFlags,
IntPtr lpEnvironment,
string lpCurrentDirectory,
ref NativeMethods.STARTUPINFO lpStartupInfo,
out NativeMethods.PROCESS_INFORMATION lpProcessInformation
)
Parámetros
- hToken
Tipo: System.IntPtr
- lpApplicationName
Tipo: System.String
- lpCommandLine
Tipo: System.String
- lpProcessAttributes
Tipo: Microsoft.TeamFoundation.Common.Internal.NativeMethods.SECURITY_ATTRIBUTES%
- lpThreadAttributes
Tipo: Microsoft.TeamFoundation.Common.Internal.NativeMethods.SECURITY_ATTRIBUTES%
- bInheritHandle
Tipo: System.Boolean
- dwCreationFlags
Tipo: System.UInt32
- lpEnvironment
Tipo: System.IntPtr
- lpCurrentDirectory
Tipo: System.String
- lpStartupInfo
Tipo: Microsoft.TeamFoundation.Common.Internal.NativeMethods.STARTUPINFO%
- lpProcessInformation
Tipo: Microsoft.TeamFoundation.Common.Internal.NativeMethods.PROCESS_INFORMATION%
Valor devuelto
Tipo: System.Boolean
Vea también
Referencia
Microsoft.TeamFoundation.Common.Internal (Espacio de nombres)