IALARMMGR_SetAlarm returns Code as 1 | developer.brewmp.com IALARMMGR_SetAlarm returns Code as 1 | developer.brewmp.com

Developer

IALARMMGR_SetAlarm returns Code as 1

Forums:

 

HI All

I am able to create the Alarm Instance Successfully but IALARMMGR_SetAlarm returns Code as 1 but not able to set the Alarm

Below is the Code Snippet.

 

if (ISHELL_CreateInstance(pMe->piShell, AEECLSID_ALARMMGR,        (void **)&pMe->piAlarmMgr) != SUCCESS) {                  pMe->piAlarmMgr = NULL;       return FALSE;    }    int nErr;uint32 nSecs = 20;    uint32 UserCode = 0;    nErr = IALARMMGR_SetAlarm(pMe->piAlarmMgr, AEECLSID_CPOWERMODETEST,&UserCode, nSecs);    DBGPRINTF("Error Code %d",nErr);    if (AEE_SUCCESS != nErr)     {        DBGPRINTF("Alarm Not Set");        return FALSE;    }    else    {        DBGPRINTF("Alarm Set");    }    return TRUE;

 

Please help me on this

 

Thanks & Regards

 Pradeep