Skip to content

Commit

Permalink
[SLIMDETOURS] Use ReactOS NDK when build with ReactOS
Browse files Browse the repository at this point in the history
  • Loading branch information
RatinCN committed Jul 27, 2024
1 parent 99cd1fb commit 848098f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Source/SlimDetours/SlimDetours.inl
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
#pragma once

#ifndef __REACTOS__

/* Use KNSoft.NDK by default */
#include <KNSoft/NDK/NDK.h>

#else

/* Use ReactOS NDK with addendum on ReactOS */

#include "NDK_Addendum.h"

#define WIN32_NO_STATUS
#include <windef.h>
#include <winbase.h>

#define NTOS_MODE_USER
#include <ndk/exfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>

#include <suppress.h>

#endif

#include "SlimDetours.h"

#if _DEBUG
Expand Down

0 comments on commit 848098f

Please sign in to comment.