Add Original SDK
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
Using the Runtime Protection Check API in Qt Creator Projects
|
||||
=============================================================
|
||||
|
||||
The runtime protection API sample code (apitest.c and dris.h) has been tested with Qt Creator 4.10.2 on Windows,
|
||||
using MinGW as the compiler and qmake as the build system.
|
||||
As Qt Creator supports such a wide variety of different compilers and build systems, no project files are included in this sample code.
|
||||
It is better to create your own project using your preferred toolchain, and then use 'Add Existing Files...' to add apitest.c and dris.h.
|
||||
|
||||
Qt Creator may complain about the symbols BYTE and WINAPI in dris.h.
|
||||
If it does, insert "#include <windows.h>" at the top of dris.h.
|
||||
|
||||
Qt Creator projects are Unicode by default, it may complain about the use of C strings in calls to MessageBox() in apitest.c.
|
||||
To solve this issue, either set your project explicitly as an ANSI project, or change all occurrences of MessageBox() to MessageBoxA().
|
||||
|
||||
You will need to add a reference to the relevant static library (OBJ file) for your compiler.
|
||||
For projects that use qmake, add the following to your *.pro project file:
|
||||
|
||||
LIBS += path\to\object_module.obj
|
||||
Reference in New Issue
Block a user