You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,25 @@ And here is a [Todo List](https://github.com/KNSoft/KNSoft.SlimDetours/milestone
30
30
31
31
### TL;DR
32
32
33
-
[KNSoft.SlimDetours package](https://www.nuget.org/packages/KNSoft.SlimDetours) is out-of-the-box, contains both of [SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours) and the original [Microsoft Detours](https://github.com/microsoft/Detours), install to project and the compiled library will be linked automatically.
34
-
35
-
Include header [SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/SlimDetours.h) for KNSoft.SlimDetours, or header [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Detours/src/detours.h) for the original [Microsoft Detours](https://github.com/microsoft/Detours), then link compiled library `KNSoft.SlimDetours.lib`.
33
+
[KNSoft.SlimDetours package](https://www.nuget.org/packages/KNSoft.SlimDetours) is out-of-the-box, contains both of [KNSoft.SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours) and the latest [Microsoft Detours](https://github.com/microsoft/Detours), include corresponding header ([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h)) and compiled static library to use them.
#include<KNSoft/SlimDetours/detours.h>// Microsoft Detours
36
+
/* KNSoft.SlimDetours */
37
+
#include<KNSoft/SlimDetours/SlimDetours.h>
38
+
#pragma comment(lib, "KNSoft.SlimDetours.lib")
39
+
40
+
/* Microsoft Detours */
41
+
#include<KNSoft/SlimDetours/detours.h>
42
+
#pragma comment(lib, "Microsoft.Detours.lib")
40
43
```
41
44
42
-
If your project configuration name is neither "Release" nor "Debug", [MSBuild sheet](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours.targets) in NuGet package cannot link compiled library automatically, link manually is required, for example:
45
+
If your project configuration name contains neither "Release" nor "Debug", [MSBuild sheet](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours.targets) in NuGet package cannot determinate automatically the last level directory name ("Release" or "Debug") of library path should be used, add it manually is required, for example:
The usage has been simplified, e.g. the hook only needs one line:
@@ -80,7 +87,7 @@ Project building: support for the latest MSVC generation tools and SDKs is mainl
80
87
81
88
Artifact integration: widely compatible with MSVC generation tools (support for VS2015 is known), and different compilation configurations (e.g., `/MD`, `/MT`).
82
89
83
-
Runtime environment: NT5 or above OS, x86/x64/ARM64 platforms.
90
+
Runtime environment: NT5 or above OS, x86/x64/ARM64/ARM64EC target platforms.
84
91
85
92
> [!CAUTION]
86
93
> In beta stage, should be used with caution. Some APIs may be altered frequently, please keep an eye out for the release notes.
[KNSoft.SlimDetours NuGet包](https://www.nuget.org/packages/KNSoft.SlimDetours)是开箱即用的,同时含有[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)与最新的[Microsoft Detours](https://github.com/microsoft/Detours),包含对应的头文件([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h))和编译出的静态库以使用它们。
0 commit comments