Get process image path after rename

Hi guys,

I am using NtQueryInformationProcess(ProcessImageFileName) to get image full path in driver, however it retuns old name if image is renamed after process starts.
Is there anyway to get new name? i believe yes because task manager shows correct name.
Can anyone help?

Thanks
herb

I’ve found that QueryFullProcessImageName solves this problem.
But it does not work for this case:
run c:\a\test.exe, exit it, rename c:\a to c:\b, run c:\b\test.exe
It still returns c:\a\test.exe in this case, but procexp shows correct one.