LoadUserProfile

[DllImport("userenv.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern bool LoadUserProfile(
   IntPtr hToken,
   ref PROFILEINFO lpProfileInfo
);

Microsoft documentation: Link

Last updated