Windows API for creating a user profile

I am trying to find the Window API to create a user profile.

I am creating a local user on Windows, and I am trying to start a process with this user using CreateProcessWithLogonW with the LOGON_WITH_PROFILE flag set.

Because the profile does not exist (the user has not yet been interactively logged in), CreateProcessWithLogonW fails.

When performing an interactive login with this user and the subsequent launch of the program, he works.

Does anyone know how to create a user profile using the Win32 API?

Thank! Lior

+3
source share
1 answer

API (. http://msdn.microsoft.com/en-us/library/bb776901.aspx). Vista CreateProfile. LogonUser LoadUserProfile, UnloadUserProfile (. http://msdn.microsoft.com/en-us/library/bb762281.aspx).

+3

Source: https://habr.com/ru/post/1757784/


All Articles