ProcessLogonFlags Enumeration
Specifies how to log on when calling
CreateProcessWithLogon(String, String, String, ProcessLogonFlags, String, StringBuilder, CreateProcessFlags, IntPtr, String, ProcessStartupInfo, ProcessInformation)
and
CreateProcessWithToken(IntPtr, ProcessLogonFlags, String, StringBuilder, CreateProcessFlags, IntPtr, String, ProcessStartupInfo, ProcessInformation) function.
Namespace: DevCase.Win32.EnumsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum ProcessLogonFlags
Public Enumeration ProcessLogonFlags
Dim instance As ProcessLogonFlags
public enum class ProcessLogonFlags
No code example is currently available or this language may not be supported.
NoProfile |
0 |
Log on without loading the user's profile in the HKEY_USERS registry key.
|
UseProfile |
1 |
Log on, then load the user's profile in the HKEY_USERS registry key.
The function returns after the profile has been loaded.
Loading the profile can be time-consuming,
so it is best to use this value only if you must access the information in the HKEY_CURRENT_USER registry key.
|
UseNetCredentialsOnly |
2 |
Log on, but use the specified credentials on the network only.
The new process uses the same token as the caller, but the system creates a new logon session within LSA,
and the process uses the specified credentials as the default credentials.
This value can be used To create a process that uses a different set of credentials locally than it does remotely.
This is useful in inter-domain scenarios where there is no trust relationship
|