Close a window instead of minimizing it!

I'm looking for a C function that closes a window i've tried CloseWindow(HWND) and i'm unsure of how i'd aim ExitProcess() at a specific window. all that CLoseWindow() does is minimize is there a function to like fully exit the window?

i want to close a specific window not a whole process eg
1
2
3
4
5
6
7
8
9
HWND wind;
char winanme[256];
wind = GetForeGroundWindow();
GetWindowTextA(wind, windanme, 256);
//Check if they have a window for New Tabe eg. Google
if (strstr(windanme, "New Tab") != NULL) {
printf("You can't make new tabs!");
CloseWindow(wind); // <- Here is where something to close would be. 
}

Topic archived. No new replies allowed.