S. Brandt wrote:
> Hi!
> Again, I can't manage compiling on windows ... I did some small fixes on the
> way, yet, I'm still getting stuck somewhere ...
> It's CallNtPowerInformation / HostPowerServiceWin::WndProc.
Replying to myself, as noone seems to be intereseted in virtualbox-ose on
windows.
Situation from last message - unchanged in 2.1.2.
For fixing CallNtPowerInformation:
1. extend the WINPSDK.inc file to include powrprof.lib into SDK_WINPSDK_LIBS
kbuild/WINPSDK.inc:
SDK_WINPSDK_LIBS ?= \
...
$(PATH_SDK_WINPSDK_LIB)/WinMM.Lib \
$(PATH_SDK_WINPSDK_LIB)/powrprof.lib
2. the missing function is
?CallNtPowerInformation@@YGJW4POWER_INFORMATION_LEVEL@@pax...@z (C++ name
mangled!), while the method provided by the dll/lib is
[_imp]_callntpowerinformat...@20.
So, obviously, there is an 'extern "C"' missing in HostPowerWin.cpp
src\VBox\Main\HostPowerWin.cpp:
extern "C" {
#include <PowrProf.h>
}
Okay, seems to compile and link through ...
I can't get it to run, but I believe that is another problem ... I'll tell
more in a few days.
Have fun,
Sebastian
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev