RtlAdjustPrivilege (SE_DEBUG_PRIVILEGE) without admin rights

Posts 1–5 of 5 · Page 1 of 1
RtlAdjustPrivilege (SE_DEBUG_PRIVILEGE) without admin rights
Hello! Is it possible to use RtlAdjustPrivilege (SE_DEBUG_PRIVILEGE) without admin rights?
If I'm using it this way (without admin rights), it returns error "0xC0000061".
Code:
     ERROR_PRIVILEGE_NOT_HELD,               /* c0000061 (STATUS_PRIVILEGE_NOT_HELD) */
i guess it answers the question
Quote Originally Posted by MikeRohsoft View Post
Code:
     ERROR_PRIVILEGE_NOT_HELD,               /* c0000061 (STATUS_PRIVILEGE_NOT_HELD) */
i guess it answers the question
I've already read the description of this error (0xC0000061).
But I don't understand it.

And I mean:
if I'm running my program with admin rights, then there is no such error;
if I'm running it without admin rights, then it (error) appears;

I need to know either the solution for this problem, or just to see an answer "It's unsolvable.".
Run as admin works? Then just enforce running as admin, give a message/shutdown when they run normally.
Quote Originally Posted by Hell_Demon View Post
Run as admin works? Then just enforce running as admin, give a message/shutdown when they run normally.
Yes, works. But in some cases (PCs) I don't have enough rights to run programs as admin.
Anyway, I don't need it anymore.
Thanks!
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us