even if the message is on startup, you should be able to get into Windows.
Try first a system restore from
Start>run>msconfig>launch system restore.
Try a sfc /scannow and a chkdsk in start>run
It's usually related to Windows rundll32 or it could be a virus.
1. Check your Task manager procesess tab when this error happens.
2.Look first in Start > Run>msconfig at startup and at services for weird names or rundl (with 1 L) and uncheck it.
3.Give your PC a scan with Malwarebytes just in case.
If not, go to right click>manage and open Event viewer.
Look for that error, and double click it.
Write back, with the exact App name and Mod Name.