xtd 0.2.0
Loading...
Searching...
No Matches

◆ load_user_profile() [2/2]

process_start_info & xtd::diagnostics::process_start_info::load_user_profile ( bool  value)
noexcept

Sets a value that indicates whether the Windows user profile is to be loaded from the registry.

Parameters
valuetrue if the Windows user profile should be loaded; otherwise, false. The default is false.
Returns
The current instance of process_start_info.
Remarks
This property is referenced if the process is being started by using the user name, password, and domain.
If the value is true, the user's profile in the HKEY_USERS registry key is loaded. Loading the profile can be time-consuming. Therefore, it is best to use this value only if you must access the information in the HKEY_CURRENT_USER registry key.