The following tables list the members exposed by ProcessInfo.
Name | Description | |
---|---|---|
ProcessInfo Constructor | This is some ugly code, the intent is to be able to answer the above questions in a wide array of environments. I admit now this may fail eventually. |
Name | Description | |
---|---|---|
AppDomainName | Returns the current AppDomain's friendly name | |
ApplicationData | Returns the roaming user profile path for the currently running software application: {SpecialFolder.ApplicationData}\{CompanyName}\{ProductName} | |
CompanyName | Returns the company name of the entry assembly | |
DefaultLogFile | Returns a default log file name derived as: {SpecialFolder.LocalApplicationData}\{CompanyName}\{ProductName}\{AppDomainName}.txt | |
EntryAssembly | Returns the entry-point assembly or the highest stack assembly | |
IsDebugging | Returns true if a debugger is attached to the process | |
LocalApplicationData | Returns the non-roaming user profile path for the currently running software application: {SpecialFolder.LocalApplicationData}\{CompanyName}\{ProductName} | |
ProcessFile | Returns the file path to the exe for this process | |
ProcessId | Returns the current process id | |
ProcessName | Returns the current process name without an extension | |
ProductName | Returns the product name of the entry assembly | |
ProductVersion | Returns the product version of the entry assembly | |
RegistrySoftwarePath | Returns the HKCU or HKLM path for this software application based on the process that is running: Software\{CompanyName}\{ProductName} |