I think this is a simple one: how do I extract the "D:\Backup" from the window in focus? I see that I get the window handle through HWND GetFocus(VOID);, but how do I access and read the text?
Use GetWindowText API or the same in Win32 Message to get the window text from the handle you get from the call