[DllImport("userenv.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern bool UnloadUserProfile( IntPtr hToken, IntPtr lpProfileInfo );
Microsoft documentation: Link
Last updated 2 months ago