I have the wimgapi.dll file and the Microsoft Windows AIK installed on my development machine.
I have access to the wimgapi.h and the files that go with it.
I am working on an interface for a recovery disk using WinPE 3.0. Due to the lack of dot net support in WinPE I am programming using NetBeans in C++. I can link to the DLL and i can add the include statement to use the header file.
The only way i have gotten the include command to work is by having the header files in the root of the project directory and use the include command as follows #Include "WIMGAPI.h" to force it to look in the project folder. If i don't do this then it is unable to find the header file. Is there a way to get the include command to work without having to copy the files to the root of my project?
The main problem i am having is that after doing the above include command i am able to reference the commands within the header file but when i compile i get over 100 errors from the header file.
Here are some of the errors that i get.
wimgapi.h:200: warning: `__stdcall__' attribute only applies to function types
wimgapi.h:201: error: `__in' was not declared in this scope
wimgapi.h:202: error: `__in' was not declared in this scope
wimgapi.h:203: error: `__in' was not declared in this scope
wimgapi.h:204: error: `__in' was not declared in this scope
wimgapi.h:205: error: `__in' was not declared in this scope
wimgapi.h:206: error: `__out_opt' was not declared in this scope
wimgapi.h:207: error: initializer expression list treated as compound expression
wimgapi.h:211: warning: `__stdcall__' attribute only applies to function types
How can I compile my project and not receive all these complications or how can i modify the header file to work with C++?