NativeMethods.CreateProcessAsUser (Método)

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

Valor devuelto

Tipo: System.Boolean

Vea también

Referencia

NativeMethods Clase

Microsoft.TeamFoundation.Common.Internal (Espacio de nombres)