For each thread during the snapshot, it checks Should the thread belongs to The present process (by comparing its “th32OwnerProcessID” with The present system ID returned by “GetCurrentProcessId”) and if its thread ID differs from the desired “TheThreadId”, that is the primary thread In this instance. When transactions are recorded https://stack-encrypts50481.theisblog.com/36822596/about-stack-encrypts