DWORD dwPid = GetCurrentProcessId();On Linux:
pid_t pid = getpid();There is also getppid() for getting your parent's ID. Among other things, the process ID is useful for making unique temporary file names.
DWORD dwPid = GetCurrentProcessId();On Linux:
pid_t pid = getpid();There is also getppid() for getting your parent's ID. Among other things, the process ID is useful for making unique temporary file names.