core/win32/os.c
/* FIXME:
 * We need to be able to distinguish our own pid from that of a child
 * process.  We observe that after CreateProcess a child has pid of 0 (as
 * determined by process_id_from_handle, calling NtQueryInformationProcess).
 * For our current injection methods pid is always set when we take over,
 * but for future early-injection methods what if the pid is still 0 when
 * we start executing in the process' context?
 */
We need to be able to distinguish our own pid from that of a child
process.  We observe that after CreateProcess a child has pid of 0 (as
determined by process_id_from_handle, calling NtQueryInformationProcess).
We need to be able to distinguish our own pid from that of a child process . We observe that after CreateProcess a child has pid of 0 ( as determined by process_id_from_handle calling NtQueryInformationProcess ) .
bool
is_pid_me(process_id_t pid)
{
    return (pid ==  get_process_id());
}
bool is_pid_me ( process_id_t pid ) { return ( pid == get_process_id ( ) ) ; }
FIXME:
 We need to be able to distinguish our own pid from that of a child
 process.
FIXME : We need to be able to distinguish our own pid from that of a child process .