I need to get process name from process id in windows to find process names associated with a logged event. It is able to get Execution process id only from the logged event. Process handle is the required input to use GetProcessImageFileName()
method. It's not able to get process handle from logged event.
In the duplicate question, it talks about currently running process. But I need not currently running process since it talks about logged event. & I have a doubt of whether processID vs processName combination is unique or not in Windows. So need to consider that also..
I expect that there must be some structure to map process id to process name. Are there any structure so? or any other methods to get process image name from process id?