
The only related answer I've found so far is this one, mentioning the undocumented ITabletModeController: var pSP = (IServiceProvider)Activator.CreateInstance(Type.GetTypeFromCLSID(CLSID_ImmersiveShell)) I'm looking for a programming way of doing whatever YMC is doing to switch Windows 11 to Desktop mode., to wrap it as a small utility app. To get Windows back into Desktop mode, I have to manually start and stop YMC from an admin console: net start ymc & net stop ymc upon every system restart. In my case, YMC is set to Manual in Windows Service Manager. This can be fixed by installing and running Lenovo Yoga Mode Control for Windows, a proprietarily Lenovo service ( YMC.EXE), infamous by its aggressive CPU usage.

My Lenovo Yoga 7i laptop starts in Tablet Mode by default, so I end up with large desktop/taskbar icons and other unpleasant UI artifacts.
