JonPetitta

Does anyone know why Process.MainModule.FileName would return the following strings

\ \C:\WINDOWS\SYSTEM32\CSRSS.EXE

C:\PROGRA~1\MICROS~3\OFFICE11\OUTLOOK.EXE

\ \C:\WINDOWS\SYSTEM32\WINLOGON.EXE


Also does anyone know where .NET gets this value from, and how to fix it


TIA,

Jon



Re: .NET Base Class Library Process.MainModule.FileName Problem

OmegaMan

Can you give us more of the context in which this is occurring and why it is a problem.





Re: .NET Base Class Library Process.MainModule.FileName Problem

JonPetitta

I am creating a list of running processes, and the modules that they have loaded. I need to compare them to another list that is being created by a WIN32 API C++ app, and it returns slightly different paths for the items listed, all the other 1,800 plus items match up fine.




Re: .NET Base Class Library Process.MainModule.FileName Problem

Inbar Gazit - MSFT

What do you get from the Win32 app for the 3 items above




Re: .NET Base Class Library Process.MainModule.FileName Problem

OmegaMan

JonPetitta wrote:
I am creating a list of running processes, and the modules that they have loaded. I need to compare them to another list that is being created by a WIN32 API C++ app, and it returns slightly different paths for the items listed, all the other 1,800 plus items match up fine.


Can you give an example of both I see how .Net may be unexpected, but is it a Dos 8.3 naming issue or just that .Net is returning bad characters