borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Success with simplicity workshop by Forum Nokia)Next Topic (How to Control Other Program using VB) New Topic New Poll Post Reply
AndreaVB Forum : API : Executable name from Thread handle?
Poster Message
Merrion
Level: VB Guru

Registered: 15-04-2002
Posts: 37

icon Executable name from Thread handle?

Is there any way to get from a thread handle to an executable name?

Thanks in advance,
  Duncan

[Edited by admin on 26-08-2010 at 01:14 PM GMT]

____________________________
--8<------------------------------
Free components and source code - see http://www.merrioncomputing.com/Download/index.htm for details

15-07-2002 at 02:59 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 153
icon Re: Executable name from Thread handle?

At times, ppl search for solutions on sites like google and yahoo... when they see a question like this one which is exactly what they want, they look for an answer, and seeing none, they get disappointed.. (happens wimme all the time....)
So i just thot that i shud post a link which i nkow cud help in such a situation... here it is :

http://vbnet.mvps.org/index.html?code/system/winclasstitle.htm

____________________________
lOsT...

16-07-2005 at 09:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
abecedario
Level: Trainee

Registered: 25-07-2005
Posts: 2
icon Re: Executable name from Thread handle?

I need to get the name of an application from the task manager using vb or vb.net after that i need to compare that name with another name that is stored in a database, Could any body help me with thise issue??

____________________________
Dj**Abecedario

25-07-2005 at 11:09 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Heider
Level: Trainee

Registered: 17-01-2010
Posts: 1
icon Re: Executable name from Thread handle?

Try:

Process.GetCurrentProcess.MainModule.FileName

This would return the applicatioin full path and EXEC name.

Regards
Heider Sati


____________________________
Heider Sati
Senior Technical Analyst

17-01-2010 at 08:18 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : API : Executable name from Thread handle?
Previous Topic (Success with simplicity workshop by Forum Nokia)Next Topic (How to Control Other Program using VB) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder