'EnumWindows callback - sends WM_CLOSE to any window
owned by this process.'

def __close__(self, hwnd, dummy):

    (TId, PId) = win32process.GetWindowThreadProcessId(hwnd)
    if (PId == self.PId):
        win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)
