" 'LPVOID' does not name a type" when including Psapi.h for C++ in CodeBlocks

394 views Asked by At

I'm trying to include psapi.h in a Code::Blocks C++ console project, but it does not allow me to use it. From the informations I've been able to gather in 3 hours of googling, I need to include a Library(it seems to be psapi.lib) in the project by going on build options->Linker settings and add either psapi.h or psapi.lib(different sources gave me different indications). I've tried to do so, and it does nothing.

It is the first time I try to include a library, so it may be my fault.

It would be perfect if someone could give me some steps to follow from the point in which you create a project to adding the library, to be sure I haven't missed out anything during project creation or later.

I've been asked for a minimal reproducible example. I'm not sure if this satisfies the condition, but it is enough for the problem I'm asking about to manifest

#include <psapi.h>  
int main()
{
return 0;
}
0

There are 0 answers