Returns the PID (process ID) of the process, that opened the file handle
function GetCreatorProcessId() : LongWord;
unsigned long GetCreatorProcessId();
unsigned long __fastcall GetCreatorProcessId();
Function GetCreatorProcessId() As UInt32
The ID of the process.
Use GetCreatorProcessId to get the process ID (PID) of the process that opened the file handle.
Note that the PID is guaranteed to be unique only during lifetime of the process. When the process is terminated, its PID can (in theory) be used by other process. In fact this never happens, but such possibility is documented by Microsoft.
This method may be called only from callback / event handlers.