I have a native messaging host and want to find the profile path of the extension that launched it.
I have tried using NtQueryInformationProcess
to retrieve the command line of the calling process (which has the profile path), however it appears I'm not always able to obtain the SE_DEBUG_NAME
privilege which is necessary to read the process memory.
Other than using NPAPI
(because it is going away), any other ideas on how this can be obtained?