UINT64 __stdcall PpmGetDeepSleepPlatformStateIndex(){ if( PpmPlatformStates && *(_DWORD *)PpmPlatformStates ) return(unsigned int)(*(_DWORD *)PpmPlatformStates - 1); else return 0xFFFFFFFFi64; }