Which Process Contains Notes UI?

Hi, anyone knows which process contains Notes main UI in each Notes version?

I find several Notes process, nlnotes.exe notes2w.exe notes2.exe. I could see nlnotes.exe is the main UI on Notes 6/7, and notes2w.exe is the main UI for Notes 8.0.2, but suddenly there comes a notes2.exe?

Is there a rule there for me to determine which process contain the main UI? I need to write a program to let user know his notes is open and need to be shutdown in order that some 3rd party plugins can be provisioned to notes silently. So I need to find the right UI process so that I can get the window text to tell user which window he needs to shutdown in order to close Notes.

Thanks ahead.