if an error codes comes on the blue screen then it is called the blue screen of death . microsoft has no solution for this.
this mainly occurs i u hav a device plugged in which is not digitally signed or ur RAM is faulty
if blue screen comes with error code then ^+1 for above reply
@OP
Do what I said to prevent restarting. Then note down the details in the blue screen and hit the reset button. Google about it, or post it here and we'll see if we can help you.
Since it is bluescreen let me tell you Bill Gates had one experience in the past.
On a news broadcast for the functionality Windows 98 OS there was this
incident.check it here