How do I determine the full path to my own executable file?

Hint - the correct answer to this question is NOT GetCurrentDirectory.

The correct answer is to call GetModuleFileName using NULL for the HMODULE parameter.