2007年1月31日星期三

如何得知某进程的主线程号?

如何得知某进程的主线程号?

---------------------------------------------------------------  
 
根据进程ID得到主线程ID值:  
1.OpenProcess  取得  process  handle  
2.CreateToolhelp32Snapshot  得到一个snapshot  
3.然后调  Thread32First,Thread32Next  取线程。  
MSDN  有个例子:  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp  

12 条评论:

匿名 说...

Some genuinely good articles on this web site , thanks
for contribution.

Feel free to surf to my page ... sharecash auto

匿名 说...

Because the admin of this website is working, no hesitation very shortly it will be well-known, due
to its quality contents.

My weblog; software sms

匿名 说...

Very interesting topic , regards for putting up.
"Nobody outside of a baby carriage or a judge's chamber believes in an unprejudiced point of view." by Lillian Hellman.


Have a look at my web blog :: psn cards

匿名 说...

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time
a comment is added I get three e-mails with the same comment.
Is there any way you can remove people from that service?
Thanks a lot!

my web site :: clicksia

匿名 说...

Only wanna comment on few general things, The website
style is perfect, the content is really superb.
"War is much too serious a matter to be entrusted to the military." by Georges Clemenceau.


My web site minecraft hack

匿名 说...

We stumbled over here coming from a different web page
and thought I should check things out. I like what I see so
now i'm following you. Look forward to looking over your web page repeatedly.

Also visit my web blog: free psn code

匿名 说...

Ahaa, its good conversation about this post at this place at
this blog, I have read all that, so now me also commenting here.


my site: easy money

匿名 说...

This is my first time go to see at here and i am really happy to read
everthing at alone place.

Look into my webpage - dragonvale gems

匿名 说...

A person necessarily lend a hand to make seriously posts I'd state. That is the first time I frequented your website page and to this point? I surprised with the research you made to create this actual submit amazing. Magnificent process!

My homepage; My Sex Games Downloads

匿名 说...

Greetings from Florida! I'm bored to death at work so I decided to check out your blog on my iphone during lunch break. I really like the knowledge you provide here and can't
wait to take a look when I get home. I'm amazed at how fast your blog loaded on my cell phone .. I'm not even using WIFI, just 3G .

. Anyways, great site!

Here is my site - adfly auto clicker

匿名 说...

I am really impressed with your writing skills and also with the layout on your blog.
Is this a paid subject or did you modify it yourself? Either
way stay up the excellent high quality writing, it's uncommon to peer a nice blog like this one these days..

Feel free to surf to my homepage :: Password recovery

匿名 说...

Hello there! Would you mind if I share your blog with my myspace group?
There's a lot of folks that I think would really enjoy your content. Please let me know. Many thanks

Feel free to visit my site - Ptc Money