Get process name from process id

I have got the process id of the process responsible for a IRP request.Now i have to get the full path or name of the exe corresponding to this process id. So based on this I will decide how to process the request.
i couldnt use ZwQueryInformationProcess or NtZwQueryInformationProcess
Please help me

i couldnt use ZwQueryInformationProcess or NtZwQueryInformationProcess

Why not? This might help us help you.

But not as I recall you need to open the process first - the build in “current process” thing doesn’t work.

This is old but not entirely irrelevant