wer: add a stub for WerReportSetUIOption
Austin English
austinenglish at gmail.com
Wed Jan 25 16:57:35 CST 2012
Called by Windows Live Essentials 2011, see
http://bugs.winehq.org/show_bug.cgi?id=29703
--
-Austin
-------------- next part --------------
From 9d519cf1941c700768aeb9dce13230af2049ce2f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 25 Jan 2012 14:56:35 -0800
Subject: [PATCH] wer: add a stub for WerReportSetUIOption
---
dlls/wer/main.c | 9 +++++++++
dlls/wer/wer.spec | 2 +-
include/werapi.h | 17 +++++++++++++++++
3 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/dlls/wer/main.c b/dlls/wer/main.c
index d68d652..ae9ab26 100644
--- a/dlls/wer/main.c
+++ b/dlls/wer/main.c
@@ -348,3 +348,12 @@ HRESULT WINAPI WerReportSubmit(HREPORT hreport, WER_CONSENT consent, DWORD flags
*presult = WerDisabled;
return E_NOTIMPL;
}
+
+/***********************************************************************
+ * WerReportSetUIOption (wer.@)
+ */
+HRESULT WINAPI WerReportSetUIOption(HREPORT hreport, WER_REPORT_UI uitype, PCWSTR value)
+{
+ FIXME("(%p, %d, %s) :stub\n", hreport, uitype, debugstr_w(value));
+ return E_NOTIMPL;
+}
diff --git a/dlls/wer/wer.spec b/dlls/wer/wer.spec
index bfc39e4..65252b0 100644
--- a/dlls/wer/wer.spec
+++ b/dlls/wer/wer.spec
@@ -68,7 +68,7 @@
@ stdcall WerReportCloseHandle(ptr)
@ stdcall WerReportCreate(wstr long ptr ptr)
@ stdcall WerReportSetParameter(ptr long wstr wstr)
-@ stub WerReportSetUIOption
+@ stdcall WerReportSetUIOption(ptr long ptr)
@ stdcall WerReportSubmit(ptr long long ptr)
@ stub WerpGetReportConsent
@ stub WerpIsDisabled
diff --git a/include/werapi.h b/include/werapi.h
index e8ec487..c709dad 100644
--- a/include/werapi.h
+++ b/include/werapi.h
@@ -121,6 +121,22 @@ typedef enum _WER_DUMP_TYPE
WerDumpTypeMax
} WER_DUMP_TYPE;
+typedef enum _WER_REPORT_UI
+{
+ WerUIAdditionalDataDlgHeader = 1,
+ WerUIIconFilePath = 2,
+ WerUIConsentDlgHeader = 3,
+ WerUIConsentDlgBody = 4,
+ WerUIOnlineSolutionCheckText = 5,
+ WerUIOfflineSolutionCheckText = 6,
+ WerUICloseText = 7,
+ WerUICloseDlgHeader = 8,
+ WerUICloseDlgBody = 9,
+ WerUICloseDlgButtonText = 10,
+ WerUICustomActionButtonText = 11,
+ WerUIMax
+} WER_REPORT_UI;
+
/* #### */
typedef struct _WER_DUMP_CUSTOM_OPTIONS
@@ -153,6 +169,7 @@ HRESULT WINAPI WerRemoveExcludedApplication(PCWSTR, BOOL);
HRESULT WINAPI WerReportCloseHandle(HREPORT);
HRESULT WINAPI WerReportCreate(PCWSTR, WER_REPORT_TYPE, PWER_REPORT_INFORMATION, HREPORT*);
HRESULT WINAPI WerReportSetParameter(HREPORT, DWORD, PCWSTR, PCWSTR);
+HRESULT WINAPI WerReportSetUIOption(HREPORT, WER_REPORT_UI, PCWSTR);
HRESULT WINAPI WerReportSubmit(HREPORT, WER_CONSENT, DWORD, PWER_SUBMIT_RESULT);
#ifdef __cplusplus
--
1.7.3.4
More information about the wine-patches
mailing list