It's bad enough for a guest to demolish the host's house; demolishing an unrelated person's house is taking it to a whole new level
"How do I destroy a window that belongs to another process?" The function will not destroy windows that belong to another thread, much less another process. The best you can do is post a message to the window to ask it nicely. The function response to the message by destroying the window, but the window is free to add a custom handler for th...