gigi

gigi

  • NA
  • 1
  • 0

How do i retrieve my current job handle from managed code?

Dec 14 2006 2:11 PM
I realized the CLR already assigns a newly managed process to a job without limits. Infact, when my managed process starts, it is already assigned to a job object named like so: "\BaseNamedObjects\PCA_{F8AF7CDA-B659-4A84-AA03-464352954028}" How could i retrieve that handle from managed code? I can't use p/invoke with OpenJobObject becouse i can't guess the job name at runtime. Anyway i think the jobobject is already opened. The job name changes each execution since i imagine a new job object is created from CLR each execution. Is there any way to manage limit things without the job handle? I'm a little confused, please help me. Thank you.