Could I get a "this" to point to current application?

I will set right dynamically, and write it as a public function. So I want to get a pointer like this to point to the current application’s name.

So I can write like a public function, not pass the current application’s name every time.

Could I do that?