Jump to content

Recommended Posts

Posted

Hi ,

I am trying to use openThread() to get cpu utilization of an agent from process a .So i just want to check if

its possible ? I am trying to open agent thread from a different process b not from process a.The below code is used for the same

 

 

tempTID = kernelTID

thrdHand=OpenThread(THREAD_QUERY_INFORMATION,FALSE,tempTID)

 

 

The above function return error code as 5 ie thrHand is found to be Null.

I dont see any issue on tempTID.

 

 

I have all the privileges and rights which allows me to use the above function .

Posted

Hi,

 

Can you post the entire code?

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted
I don't think you can get the AGENT status from another process.

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

I don't think you can get the AGENT status from another process.

 

 

 

But the same code was working on window server 2003. Is this a limitation for window 2008

Posted
No idea... sorry.

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

http://msdn.microsoft.com/en-us/library/ms686769(v=vs.85).aspx

 

It looks like this code doesn't work anymore...

 

You can use performance counter:

http://msdn.microsoft.com/en-us/library/aa373088(v=VS.85).aspx

 

Or you can get it by using WMI:

http://msdn.microsoft.com/en-us/library/aa392397%28VS.85%29.aspx

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...