Windows 7 broken - no PowerDeterminePlatformRoleEx

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Windows 7 broken - no PowerDeterminePlatformRoleEx

Postby magreenblatt » Tue Sep 17, 2019 12:26 pm

That’s the same value that CEF uses in the binary distribution cmake configuration. Do you get the power-related linker error using that configuration, for example when building the cefclient sample application using VS2019?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Windows 7 broken - no PowerDeterminePlatformRoleEx

Postby ndesktop » Tue Sep 17, 2019 12:58 pm

Probably for chromium build _WIN32_WINNT should not be defined, only for libcef_dll_wrapper.
At least this is what is suggested on the chromium issue.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Windows 7 broken - no PowerDeterminePlatformRoleEx

Postby magreenblatt » Wed Sep 18, 2019 5:26 am

ndesktop wrote:Probably for chromium build _WIN32_WINNT should not be defined, only for libcef_dll_wrapper.
At least this is what is suggested on the chromium issue.

Interesting. I think Chromium (and cef_sandbox.lib) is built with _WIN32_WINNT=0x0A00 from here. As you've said previously, the runtime checks should call the correct method on Windows 7. Maybe we should modify the CMake configuration to also specify _WIN32_WINNT=0x0A00 so that linking of the CEF binary distribution behaves the same as with Chromium.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Windows 7 broken - no PowerDeterminePlatformRoleEx

Postby BobM » Mon Dec 16, 2019 7:05 pm

Using cef_binary_79.0.6+gc10886d+chromium-79.0.3945.36_windows32 (from compiling full source myself with proprietry_codecs=true)....

Compiling, linking and running on Windows 10 is fine.

But running on Windows 7 gets "The procedure entry point PowerDeterminePlatformRoleEx could not be located in the DLL POWRPROF"

Looks like PowerDeterminePlatformRoleEx is called in chromium\src\base\win\win_util.cc(94) without using LoadLibrary/GetProcAddress to check if is available.

Not sure what to do about this -
BobM
Mentor
 
Posts: 72
Joined: Wed May 11, 2016 4:28 pm

Re: Windows 7 broken - no PowerDeterminePlatformRoleEx

Postby ndesktop » Tue Dec 17, 2019 5:08 am

Most likely you should comment on the filed issue (link in my previous posts) about how you get the error.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 37 guests