SetSuspendState probleme!



  • Hallo,

    Ich will gern das SetSuspendState function benutzen, und habe folgende frage:
    Welche header file muss ich einbenden?

    Ich habe das wie folgt gemacht:

    #include <Powrprof.h>
    

    Aber danach erhalte ich 21 errors:

    ...vc\platformsdk\include\powrprof.h(21) : error C2011: '_GLOBAL_MACHINE_POWER_POLICY' : 'struct' type redefinition

    redefinitionvc\platformsdk\include\powrprof.h(28) : error C2011: '_GLOBAL_USER_POWER_POLICY' : 'struct' type redefinition

    ......

    Was habe ich falsch gemacht?

    Bitte um hilfe.

    Danke.



  • Sorry, das war mein fehler.

    Ich hatte doppelte eintrag in VC++ Include Directories.

    Ich habe einfach "...\vc\platformsdk\include\" gelöscht.

    Viele Grüße.


Anmelden zum Antworten