internal static string GetAppId(HWND hWnd)
        { // get Application ID to window handle
            string appId;

            hWnd.GetApplicationView().GetAppUserModelId(out appId);
            return(appId);
        }