Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Job Object and Security issues..

0 views
Skip to first unread message

Jijo Xavier

unread,
Aug 28, 2003, 3:43:31 PM8/28/03
to
Hello folks,
I am having a little problem with Windows security objects.
I create a job object using CreateJobObject(NULL, NULL) function.
Now I want to assign a process to it with AssignProcessToJobObject().
But this call fails with "ACCESS_DENIED" error.

MSDN says to do this the job object should have
JOB_OBJECT_ASSIGN_PROCESS right.
How do I add this right to my job object ?? I tried calling
GetSecurityInfo() on my job handle but that call
also fails with access_denied.

How do I properly set these access rights ?? What are all the API's
?? What is the sequence of calling ??
A sample code snippet would be really helpful. I am quite new to the Windows
Object Security programming.

Thanks
~j.


0 new messages