LNK2001 (unresolved external symbol) on ReadGlobalPwrPolicy

  • Thread starter Thread starter CindyK
  • Start date Start date
C

CindyK

Anyone have an idea why I would be getting:
LNK2001 (unresolved external symbol) on ReadGlobalPwrPolicy()

I'm including "powrprof.h" from the XP SP2 platform SDK.
I'm also getting "powrprof.lib" from there.

I did a dumpbin on powrprof.lib and see that _ReadGlobalPwrPolicy is being
exported.

These are the 2 code lines I'm using:
GLOBAL_POWER_POLICY globalPowerPolicy;
ReadGlobalPwrPolicy(&globalPowerPolicy);



-CK
 
CindyK said:
Anyone have an idea why I would be getting:
LNK2001 (unresolved external symbol) on ReadGlobalPwrPolicy()

I'm including "powrprof.h" from the XP SP2 platform SDK.
I'm also getting "powrprof.lib" from there.

I did a dumpbin on powrprof.lib and see that _ReadGlobalPwrPolicy is being
exported.

These are the 2 code lines I'm using:
GLOBAL_POWER_POLICY globalPowerPolicy;
ReadGlobalPwrPolicy(&globalPowerPolicy);



-CK

http://www.google.com/search?hl=en&lr=&q=LNK2001+&btnG=Search
 
Back
Top