     WerReportCloseHandle(reporthandle);
                }
                return queryResult;
            }

            //Get store location on local machine for availabe response
            if (werResult == WER_SUBMIT_RESULT.WerReportUploaded)
            {
                queryResult.responseUrl = responseCallback.responseUrl;

                reportStorePathPtr = Marshal.AllocHGlobal((int)length * 2);
                resultCode = WerpGetStoreLocation(reporthandle, reportStorePathPtr, ref length);
                if (0 == resultCode)
                {
                    reportStorePath = Marshal.PtrToStringUni(reportStorePathPtr);
                    queryResult.reportStoreLocation = reportStorePath;
                }
                Marshal.FreeHGlobal(reportStorePathPtr);

                resultCode = WerpGetStoreType(reporthandle, ref storeType);
                if (0 == resultCode)
                {
                    if (storeType == REPORT_STORE_TYPES.E_STORE_MACHINE_ARCHIVE)
                    {
                        queryResult.reportStoreType = "-adminarchive";
                    }
                    else
                    {
                        queryResult.reportStoreType = "";
                    }
                }

                if (!String.IsNullOrEmpty(queryResult.reportStoreLocation))
                {
                    int isResponseApplicable = 0;
                    int isAutoLaunch = 0;
                    resultCode = WerpIsResponseApplicable(queryResult.reportStoreLocation, (UInt32)(storeType), 0, ref isResponseApplicable, ref isAutoLaunch);
                    if (0 == resultCode)
                    {
                        queryResult.isResponseApplicable = (isResponseApplicable == 1) ? true : false;
                    }
                }
            }

            if (reporthandle != IntPtr.Zero)
            {
                WerReportCloseHandle(reporthandle);
            }

            return queryResult;
        