Wondering how "CloseApplication" works under the hood - WPF.

Latest product news and announcements.
Brent Arata
Posts: 12
Joined: Mon Jan 27, 2014 10:33 pm

Wondering how "CloseApplication" works under the hood - WPF.

Post by Brent Arata » Mon Dec 22, 2014 10:39 pm

I was wondering what happens when Ranorex API calls "CloseApplication" for a Windows 8 wpf application. Does "CloseApplication" just call Taskkill via command line to kill a process?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Wondering how "CloseApplication" works under the hood - WPF.

Post by Support Team » Tue Dec 30, 2014 9:24 am

Hello Brent,

Ranorex sends a WM_Close to the top-level window of the chosen element. If there is a grace period defined Ranorex waits for the window to be closed, if it is still open Ranorex kills the process.

Regards,
Robert
.
Image