kernel32: Move Wer* function stubs to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b6c9401882
commit
8555e948bd
|
@ -37,8 +37,7 @@ C_SRCS = \
|
||||||
toolhelp.c \
|
toolhelp.c \
|
||||||
version.c \
|
version.c \
|
||||||
virtual.c \
|
virtual.c \
|
||||||
volume.c \
|
volume.c
|
||||||
wer.c
|
|
||||||
|
|
||||||
RC_SRCS = \
|
RC_SRCS = \
|
||||||
locale_rc.rc \
|
locale_rc.rc \
|
||||||
|
|
|
@ -1589,14 +1589,14 @@
|
||||||
@ stdcall -import WaitNamedPipeW (wstr long)
|
@ stdcall -import WaitNamedPipeW (wstr long)
|
||||||
@ stdcall WakeAllConditionVariable(ptr) ntdll.RtlWakeAllConditionVariable
|
@ stdcall WakeAllConditionVariable(ptr) ntdll.RtlWakeAllConditionVariable
|
||||||
@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
|
@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
|
||||||
# @ stub WerGetFlags
|
@ stdcall -import WerGetFlags(ptr ptr)
|
||||||
@ stdcall WerRegisterFile(wstr long long)
|
@ stdcall -import WerRegisterFile(wstr long long)
|
||||||
@ stdcall WerRegisterMemoryBlock(ptr long)
|
@ stdcall -import WerRegisterMemoryBlock(ptr long)
|
||||||
@ stdcall WerRegisterRuntimeExceptionModule(wstr ptr)
|
@ stdcall -import WerRegisterRuntimeExceptionModule(wstr ptr)
|
||||||
@ stdcall WerSetFlags(long)
|
@ stdcall -import WerSetFlags(long)
|
||||||
# @ stub WerUnregisterFile
|
@ stdcall -import WerUnregisterFile(wstr)
|
||||||
@ stdcall WerUnregisterMemoryBlock(ptr)
|
@ stdcall -import WerUnregisterMemoryBlock(ptr)
|
||||||
@ stdcall WerUnregisterRuntimeExceptionModule(wstr ptr)
|
@ stdcall -import WerUnregisterRuntimeExceptionModule(wstr ptr)
|
||||||
# @ stub WerpCleanupMessageMapping
|
# @ stub WerpCleanupMessageMapping
|
||||||
# @ stub WerpInitiateRemoteRecovery
|
# @ stub WerpInitiateRemoteRecovery
|
||||||
# @ stub WerpNotifyLoadStringResource
|
# @ stub WerpNotifyLoadStringResource
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* Windows Error Reporting functions
|
|
||||||
*
|
|
||||||
* Copyright 2010 Louis Lenders
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "werapi.h"
|
|
||||||
#include "wine/debug.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(wer);
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerRegisterFile (KERNEL32.@)
|
|
||||||
*
|
|
||||||
* Register a file to be included in WER error report.
|
|
||||||
*/
|
|
||||||
HRESULT WINAPI WerRegisterFile(PCWSTR file, WER_REGISTER_FILE_TYPE regfiletype, DWORD flags)
|
|
||||||
{
|
|
||||||
FIXME("(%s, %d, %d) stub!\n", debugstr_w(file), regfiletype, flags);
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerRegisterRuntimeExceptionModule (KERNEL32.@)
|
|
||||||
*
|
|
||||||
* Register a custom runtime exception handler.
|
|
||||||
*/
|
|
||||||
|
|
||||||
HRESULT WINAPI WerRegisterRuntimeExceptionModule(PCWSTR callbackdll, PVOID context)
|
|
||||||
{
|
|
||||||
FIXME("(%s, %p) stub!\n", debugstr_w(callbackdll), context);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerSetFlags (KERNEL32.@)
|
|
||||||
*
|
|
||||||
* Sets error reporting flags for the current process.
|
|
||||||
*/
|
|
||||||
|
|
||||||
HRESULT WINAPI WerSetFlags(DWORD flags)
|
|
||||||
{
|
|
||||||
FIXME("(%d) stub!\n", flags);
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerRegisterMemoryBlock (KERNEL32.@)
|
|
||||||
*/
|
|
||||||
HRESULT WINAPI WerRegisterMemoryBlock(void *block, DWORD size)
|
|
||||||
{
|
|
||||||
FIXME("(%p %d) stub\n", block, size);
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerUnregisterMemoryBlock (KERNEL32.@)
|
|
||||||
*/
|
|
||||||
HRESULT WINAPI WerUnregisterMemoryBlock(void *block)
|
|
||||||
{
|
|
||||||
FIXME("(%p) stub\n", block);
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* WerUnregisterRuntimeExceptionModule (KERNEL32.@)
|
|
||||||
*/
|
|
||||||
HRESULT WINAPI WerUnregisterRuntimeExceptionModule(PCWSTR callbackdll, PVOID context)
|
|
||||||
{
|
|
||||||
FIXME("(%s, %p) stub!\n", debugstr_w(callbackdll), context);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "winternl.h"
|
#include "winternl.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
|
#include "werapi.h"
|
||||||
|
|
||||||
#include "wine/exception.h"
|
#include "wine/exception.h"
|
||||||
#include "wine/server.h"
|
#include "wine/server.h"
|
||||||
|
@ -767,3 +768,84 @@ LONG WINAPI UnhandledExceptionFilter( EXCEPTION_POINTERS *epointers )
|
||||||
}
|
}
|
||||||
return EXCEPTION_CONTINUE_SEARCH;
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerGetFlags (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerGetFlags( HANDLE process, DWORD *flags )
|
||||||
|
{
|
||||||
|
FIXME( "(%p, %p) stub\n", process, flags );
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerRegisterFile (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerRegisterFile( const WCHAR *file, WER_REGISTER_FILE_TYPE type,
|
||||||
|
DWORD flags )
|
||||||
|
{
|
||||||
|
FIXME( "(%s, %d, %d) stub\n", debugstr_w(file), type, flags );
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerRegisterMemoryBlock (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerRegisterMemoryBlock( void *block, DWORD size )
|
||||||
|
{
|
||||||
|
FIXME( "(%p %d) stub\n", block, size );
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerRegisterRuntimeExceptionModule (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerRegisterRuntimeExceptionModule( const WCHAR *dll, void *context )
|
||||||
|
{
|
||||||
|
FIXME( "(%s, %p) stub\n", debugstr_w(dll), context );
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerSetFlags (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerSetFlags( DWORD flags )
|
||||||
|
{
|
||||||
|
FIXME("(%d) stub\n", flags);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerUnregisterFile (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerUnregisterFile( const WCHAR *file )
|
||||||
|
{
|
||||||
|
FIXME( "(%s) stub\n", debugstr_w(file) );
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerUnregisterMemoryBlock (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerUnregisterMemoryBlock( void *block )
|
||||||
|
{
|
||||||
|
FIXME( "(%p) stub\n", block );
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WerUnregisterRuntimeExceptionModule (kernelbase.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI /* DECLSPEC_HOTPATCH */ WerUnregisterRuntimeExceptionModule( const WCHAR *dll, void *context )
|
||||||
|
{
|
||||||
|
FIXME( "(%s, %p) stub\n", debugstr_w(dll), context );
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
|
@ -1701,14 +1701,14 @@
|
||||||
@ stdcall WakeByAddressAll(ptr) ntdll.RtlWakeAddressAll
|
@ stdcall WakeByAddressAll(ptr) ntdll.RtlWakeAddressAll
|
||||||
@ stdcall WakeByAddressSingle(ptr) ntdll.RtlWakeAddressSingle
|
@ stdcall WakeByAddressSingle(ptr) ntdll.RtlWakeAddressSingle
|
||||||
@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
|
@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
|
||||||
# @ stub WerGetFlags
|
@ stdcall WerGetFlags(ptr ptr)
|
||||||
@ stdcall WerRegisterFile(wstr long long) kernel32.WerRegisterFile
|
@ stdcall WerRegisterFile(wstr long long)
|
||||||
@ stdcall WerRegisterMemoryBlock(ptr long) kernel32.WerRegisterMemoryBlock
|
@ stdcall WerRegisterMemoryBlock(ptr long)
|
||||||
@ stdcall WerRegisterRuntimeExceptionModule(wstr ptr) kernel32.WerRegisterRuntimeExceptionModule
|
@ stdcall WerRegisterRuntimeExceptionModule(wstr ptr)
|
||||||
@ stdcall WerSetFlags(long) kernel32.WerSetFlags
|
@ stdcall WerSetFlags(long)
|
||||||
# @ stub WerUnregisterFile
|
@ stdcall WerUnregisterFile(wstr)
|
||||||
@ stdcall WerUnregisterMemoryBlock(ptr) kernel32.WerUnregisterMemoryBlock
|
@ stdcall WerUnregisterMemoryBlock(ptr)
|
||||||
@ stdcall WerUnregisterRuntimeExceptionModule(wstr ptr) kernel32.WerUnregisterRuntimeExceptionModule
|
@ stdcall WerUnregisterRuntimeExceptionModule(wstr ptr)
|
||||||
# @ stub WerpNotifyLoadStringResource
|
# @ stub WerpNotifyLoadStringResource
|
||||||
# @ stub WerpNotifyUseStringResource
|
# @ stub WerpNotifyUseStringResource
|
||||||
@ stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr)
|
@ stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr)
|
||||||
|
|
|
@ -174,6 +174,7 @@ typedef struct _WER_EXCEPTION_INFORMATION
|
||||||
/* #### */
|
/* #### */
|
||||||
|
|
||||||
HRESULT WINAPI WerAddExcludedApplication(PCWSTR, BOOL);
|
HRESULT WINAPI WerAddExcludedApplication(PCWSTR, BOOL);
|
||||||
|
HRESULT WINAPI WerGetFlags(HANDLE process, DWORD *flags);
|
||||||
HRESULT WINAPI WerRegisterFile(PCWSTR file, WER_REGISTER_FILE_TYPE regfiletype, DWORD flags);
|
HRESULT WINAPI WerRegisterFile(PCWSTR file, WER_REGISTER_FILE_TYPE regfiletype, DWORD flags);
|
||||||
HRESULT WINAPI WerRegisterMemoryBlock(void *block, DWORD size);
|
HRESULT WINAPI WerRegisterMemoryBlock(void *block, DWORD size);
|
||||||
HRESULT WINAPI WerRegisterRuntimeExceptionModule(PCWSTR callbackdll, void *context);
|
HRESULT WINAPI WerRegisterRuntimeExceptionModule(PCWSTR callbackdll, void *context);
|
||||||
|
@ -185,6 +186,7 @@ HRESULT WINAPI WerReportSetParameter(HREPORT, DWORD, PCWSTR, PCWSTR);
|
||||||
HRESULT WINAPI WerReportSetUIOption(HREPORT, WER_REPORT_UI, PCWSTR);
|
HRESULT WINAPI WerReportSetUIOption(HREPORT, WER_REPORT_UI, PCWSTR);
|
||||||
HRESULT WINAPI WerReportSubmit(HREPORT, WER_CONSENT, DWORD, PWER_SUBMIT_RESULT);
|
HRESULT WINAPI WerReportSubmit(HREPORT, WER_CONSENT, DWORD, PWER_SUBMIT_RESULT);
|
||||||
HRESULT WINAPI WerSetFlags(DWORD flags);
|
HRESULT WINAPI WerSetFlags(DWORD flags);
|
||||||
|
HRESULT WINAPI WerUnregisterFile(PCWSTR file);
|
||||||
HRESULT WINAPI WerUnregisterMemoryBlock(void *block);
|
HRESULT WINAPI WerUnregisterMemoryBlock(void *block);
|
||||||
HRESULT WINAPI WerUnregisterRuntimeExceptionModule(PCWSTR callbackdll, void *context);
|
HRESULT WINAPI WerUnregisterRuntimeExceptionModule(PCWSTR callbackdll, void *context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue