From: Austin English Subject: kernel32: add a stub for RegisterApplicationRecoveryCallback (3/3) Message-Id: Date: Sat, 21 May 2011 18:47:44 -0500 For http://bugs.winehq.org/show_bug.cgi?id=25228 -- -Austin From ef8feffdaa7c87f2c88b157aff2fd92a285199b3 Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 21 May 2011 18:43:25 -0500 Subject: [PATCH 3/3] kernel32: add a stub for RegisterApplicationRecoveryCallback --- dlls/kernel32/kernel32.spec | 1 + dlls/kernel32/process.c | 10 ++++++++++ include/winbase.h | 2 ++ 3 files changed, 13 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 4a8437e..8e2a5dd 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -978,6 +978,7 @@ @ stdcall RegSetValueExW(long wstr long long ptr long) advapi32.RegSetValueExW @ stdcall RegUnLoadKeyA(long str) advapi32.RegUnLoadKeyA @ stdcall RegUnLoadKeyW(long wstr) advapi32.RegUnLoadKeyW +@ stdcall RegisterApplicationRecoveryCallback(ptr ptr long long) @ stdcall RegisterApplicationRestart(wstr long) @ stub RegisterConsoleIME @ stub RegisterConsoleOS2 diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index 59c9e8a..1cce99e 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -3741,3 +3741,13 @@ HRESULT WINAPI ApplicationRecoveryInProgress(PBOOL canceled) return E_FAIL; } +/********************************************************************** + * ApplicationRecoveryInProgress (KERNEL32.@) + */ +HRESULT WINAPI RegisterApplicationRecoveryCallback(APPLICATION_RECOVERY_CALLBACK callback, PVOID param, DWORD pingint, DWORD flags) +{ + FIXME("%p, %p, %d, %d: stub\n", callback, param, pingint, flags); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return E_FAIL; +} + diff --git a/include/winbase.h b/include/winbase.h index 2752e12..5429746 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -838,6 +838,8 @@ typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE LARGE_INTEGER, DWORD, DWORD, HANDLE, HANDLE, LPVOID); +typedef DWORD (WINAPI *APPLICATION_RECOVERY_CALLBACK)(PVOID pvParameter); + #define CREATE_EVENT_MANUAL_RESET 1 #define CREATE_EVENT_INITIAL_SET 2 -- 1.7.3.4