المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Execute a system process from ring0



C++ Programming
03-30-2009, 09:13 PM
Hello! I'm writing a driver, which should start an application from ring0.
It is very important, that the app runs as SYSTEM account.
Finally i read alot of process creation, but I still have one problem:

After I have created section, process and thread I see my process in the taskmanager list, running as SYSTEM; but even though I Resume the thread I get following error:
0xc0000142 (STATUS_DLL_INIT_FAILURE)
But the process found the dll's, because if I renamed for e.g. msvcr80.dll I got the message that the dll, couldn't be found in my dll paths.
I read something about the kernel32.dll failing if it isn't able to access the desktop (winsta0\default).

My question now: Does anyone know what I could have made wrong, or does anyone has an idea how to solve my problem?

Greetz
Biosstar