mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[DELAYIMP] Separate hook symbols from library code
This allows to define these functions in the importing module.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
add_library(delayimp delayimp.c)
|
||||
add_library(delayimp
|
||||
delayimp.c
|
||||
pfnDliFailureHook2.c
|
||||
pfnDliNotifyHook2.c
|
||||
)
|
||||
add_dependencies(delayimp psdk)
|
||||
add_importlibs(delayimp kernel32)
|
||||
|
@@ -14,8 +14,8 @@
|
||||
/**** Linker magic: provide a default (NULL) pointer, but allow the user to override it ****/
|
||||
|
||||
/* The actual items we use */
|
||||
PfnDliHook __pfnDliNotifyHook2;
|
||||
PfnDliHook __pfnDliFailureHook2;
|
||||
extern PfnDliHook __pfnDliNotifyHook2;
|
||||
extern PfnDliHook __pfnDliFailureHook2;
|
||||
|
||||
#if !defined(__GNUC__)
|
||||
/* The fallback symbols */
|
||||
|
11
sdk/lib/delayimp/pfnDliFailureHook2.c
Normal file
11
sdk/lib/delayimp/pfnDliFailureHook2.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* PROJECT: ReactOS delayimport Library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: __pfnDliFailureHook2 symbol for delayimport library
|
||||
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <windef.h>
|
||||
#include <delayimp.h>
|
||||
|
||||
PfnDliHook __pfnDliFailureHook2;
|
11
sdk/lib/delayimp/pfnDliNotifyHook2.c
Normal file
11
sdk/lib/delayimp/pfnDliNotifyHook2.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* PROJECT: ReactOS delayimport Library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: __pfnDliNotifyHook2 symbol for delayimport library
|
||||
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <windef.h>
|
||||
#include <delayimp.h>
|
||||
|
||||
PfnDliHook __pfnDliNotifyHook2;
|
Reference in New Issue
Block a user