Re: Get Handle Owner,...



Hi Stefan,

thanks for your suggestion. I read this and it
really helped me to get what i want, but the
still standing question is the one, why i cant
query processes running in the context of the
Network-Service. I always get GLE=5, Access Denied.
I have really any Privilige Enabled for my Process
using Admin Principal/Context and opening the
Process with Query and the Token also with
information query attribute, fails with 5.

But i will check my code again, i think i miss
something there,...

Regards

Kerem


--
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

"Stefan Kuhr" <kustt110@xxxxxx> schrieb im Newsbeitrag
news:%23q1iXI6xIHA.2208@xxxxxxxxxxxxxxxxxxxxxxx
Kerem,

Kerem Gümrükcü wrote:
Hi V.,

my fault the SID for the Accounts i dont get the
Information is the Network-Account. I have full admin
rights and all priviliges enabled, but i think, i make some
mistake here. I will, i must investigate my code in more
detail,...

Regards

Kerem




I still don't get it why you struggle with opening processes and stuff
if QueryServiceConfig and the lpServiceStartName member of the
QUERY_SERVICE_CONFIG struct gives you all the information you need. I
use this function on a daily basis to get the user name of a service.
And no, it is *not* the service name, it is the principal under which
the service is running.

--
Stefan


.