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.

Thanks

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

What API are you using?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.