Skip to content

Comment on Code that will only execute once

Comments

In Windows, the program should check for the presence of a unique, global atom via GlobalFindAtom(). If present, terminate. If not present, create the atom with GlobalAddAtom() and continue the initial execution of the program.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.