Has anyone else run into anything like this?

Working on a windows application which needs to shutdown HotSync, and
restart it afterwards.  However, whenever the application restarts HotSync
it doesn't want to reload the lotus notes conduits.  If hotsync is exited,
and I use Start->Run: C:\palm\hotsync.exe they are loaded...

The following code has this problem using HSAPI.dll

#include "hsapi.h"

winmain()
{
    MessageBox(NULL,"","Stopping hotsync",MB_OK);
    HsSetAppStatus(HsCloseApp,HSFLAG_NONE);

    MessageBox(NULL,"","Starting hotsync",MB_OK);
    HsSetAppStatus(HsStartApp,HSFLAG_NONE);

    MessageBox(NULL,"","done",MB_OK);
    return 0;
}

Any ideas what could be wrong, or how to work around it? Using
CreateProcess(NULL,"C:\\palm\\hotsync.exe",etc...) also has this problem...
I'm out of ideas.

Dan Fahrion
<[EMAIL PROTECTED]>

Reply via email to