You don't need to include it
As the doc says, just
#include <windows.h>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I would like to using "libloaderapi.h" library that allocated in "Kernel32.lib" Library and "Kernel32.dll" DLL
https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getprocaddress
But when I compiled the program with visual studio 2019, there is an error with the library "minwinbase.h"
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION;
typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION;
typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG;
typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG;
typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG;
Error: identifier is undefined.
these are declared in "winnt.h"
I have added the links to the libraries: libloaderapi.h, minwinbase.h, winnt.h in VC++ directories, C/C++/General, Linker/input. But it's still fail
Please help me
Thanks
You don't need to include it
As the doc says, just
#include <windows.h>
currently, I'm working on windows driver framework(WDF) with kernel mode driver(KMDF), can this library work in this mode?
You don't need those headers when they are included by windows.h