I am trying to figure out how to automatically close a simple windows application in C.
I know how to create the window. But I have no idea how to get it to automatically close when it has opened without user input/interaction. Basically when it is called upon, I want it to close again.


Depending on the kind of window you created, you issue the appropriate close commands from the Windows API.

What API are you using?