0

i want to know which of the currently running application is using the .net framework? is there is and exe or any process that is running??? Need to write program in java to know which of the application uses the .net framework.

Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268
amod
  • 4,190
  • 10
  • 49
  • 75

1 Answers1

2

You could enumerate the modules loaded in the process. If mscoree.dll is loaded it is more than likely that the application is using .NET Fx. Check How to check if a program is using .NET? for more information.

Community
  • 1
  • 1
Dan
  • 1,927
  • 2
  • 24
  • 35
  • Thanks for the prompt reply Dan. One more query I have. Is there any system process/exe/service which uses .Net framework from the system startup itself? I need to trigger another application depending on such a service. It'll be of great help if you could answer this.. Thanks – amod Jun 09 '11 at 05:22
  • I know two types of applications of this kind: Windows services and the applications configured to start when an user logs in. Windows API and also .NET Fx BCL can help you with enumerating the Windows services configured to start automatically; to determine the applications configured to start when an user logs on, see http://windowsxp.mvps.org/Startup.htm. Once you have the list of applications, scan their binary files and check they have the .NET flag set. – Dan Jun 09 '11 at 05:39