|
1
|
1 #pragma once
|
|
|
2
|
|
|
3 /*
|
|
|
4 foobar2000 shared.dll hook implementations
|
|
|
5 If you're getting linker multiple-definition errors on these, change build configuration of PFC from "Debug" / "Release" to "Debug FB2K" / "Release FB2K"
|
|
|
6 Configurations with "FB2K" suffix disable compilation of pfc-fb2k-hooks.cpp allowing these methods to be redirected to shared.dll calls
|
|
|
7 */
|
|
|
8
|
|
|
9 namespace pfc {
|
|
|
10 [[noreturn]] void crashImpl();
|
|
|
11 [[noreturn]] void crashHook() {
|
|
|
12 crashImpl();
|
|
|
13 }
|
|
|
14 #ifdef _WIN32
|
|
|
15 BOOL winFormatSystemErrorMessageImpl(pfc::string_base & p_out, DWORD p_code);
|
|
|
16 BOOL winFormatSystemErrorMessageHook(pfc::string_base & p_out, DWORD p_code) {
|
|
|
17 return winFormatSystemErrorMessageImpl(p_out, p_code);
|
|
|
18 }
|
|
|
19 #endif
|
|
|
20 }
|