I’m currently porting code from MSVS2005 to MSVS2010. I have a problem with the function ReadProcessorPwrScheme() (and also WriteProcessorPwrScheme()) that no longer exist.
I looked at the file Powrprof.h to find:
#if (NTDDI_VERSION >= NTDDI_WINXP)
//
// deprecated.
//
STDAPI_(BOOLEAN)
ReadProcessorPwrScheme(
__in UINT uiID,
__out PMACHINE_PROCESSOR_POWER_POLICY pMachineProcessorPowerPolicy
);
#endif
and the same for the write function.
1) It compiled correctly with MSVS2005 but I saw that the SDK changed (just taking a look at the file Powrprof.h and we see that they differ. In the file with MSVS2005, there was no conditional compilation.)
Note that if you want me to tell you which SDK is used you will have to tell me where to find the version number!
2) I’m on Win7 SP1, 64 bits.
Is there a workaround, replacement functions, or whatever that could help me?
Thank you!
Dominique
The documentation tells you what’s going on:
Remarks: