The Blogging Technician Providing useful info for all of you and myself

20Jan/12Off

Repairing BSOD error C0000135 The program cannot start because %hs is missing

This error is commonly found after removing a virus and can be very frustrating. In order to fix this issue you must first follow the instructions found in the post "Edit the registry of a windows 7 computer that won't boot" and you will select the "System" Hive. Once in the loaded hive you navigate to the following:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\SubSystems
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\SubSystems

The value for the key windows will be this:

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=consrv:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16

and should be changed to this:

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16

The value of consrv was created by the virus, and once you removed the virus infected .DLL the system was not able to load causing the C0000135 %hs blue screen of death.