locked
how to stop a predefined CeRunAppAtTime database? RRS feed

  • Question

  • I know that it's very easy to use CeRunAppAtTime to run an application at a specified time, but before that time, if there any way to delete or stop the predefined event? i know this can be done, but unfortunately, i don't know how to do that?
    thanks in advance

    Sunday, September 6, 2009 4:30 AM

Answers

  • Ok then this code may be works for you

      CeRunAppAtTime( "\Storage Card\Program Files\JokulWord\WordTest.exe",NULL);

    this will delete the Scheduler entry.

    But make sure your app has privilege certificate or make sure security off.


    Siva.
    • Proposed as answer by GSiva Sunday, September 6, 2009 6:01 AM
    • Marked as answer by MicrodreamPY Sunday, September 6, 2009 9:38 AM
    Sunday, September 6, 2009 6:01 AM

All replies

  • You can stop/close/delete the event , provided if you have event handle,
    So could you please explain further , which event do you want stop/delete.


    Siva.
    Sunday, September 6, 2009 5:09 AM
  • it's a local program, path=@"\Storage Card\Program Files\JokulWord\WordTest.exe",
    so i really don't know how to deal with it, could you give me a short code example?
    thank you for replay

    Lee
    Sunday, September 6, 2009 5:31 AM
  • Ok then this code may be works for you

      CeRunAppAtTime( "\Storage Card\Program Files\JokulWord\WordTest.exe",NULL);

    this will delete the Scheduler entry.

    But make sure your app has privilege certificate or make sure security off.


    Siva.
    • Proposed as answer by GSiva Sunday, September 6, 2009 6:01 AM
    • Marked as answer by MicrodreamPY Sunday, September 6, 2009 9:38 AM
    Sunday, September 6, 2009 6:01 AM
  • it's very nice of you to answer me. I tried that and it works very well!
    but i find that i asked a very stupid question, the answer can be easily found on the MSDN, and I have read it before.
    here's what the MSDN said:

    If this parameter is NULL, the existing run request is deleted and no new request is entered. The deleted run request must have been initiated by a call to CeRunAppAtTime.


    Lee
    Sunday, September 6, 2009 6:30 AM