At 11:15 AM 6/9/99 -0500, you wrote:
>We're writing an updater for an existing HotSync/Palm application. I want
>to be able to shut down HotSync from within our installer. It looks like we
>need to make a call to "HSAPI.dll" using the "HsSetAppStatus()" function,
>but what parameters do we pass it? The documentation does not explicitly
>say "Use SHUT_DOWN_APP" or something similar. Has anybody else ever done
this.
>
>I've checked the KNOWLEDGE BASE and not found what I'm looking for. the
>EGROUPS route didn't bring up any answers either.
>

Either nobody knows the answer or it is a really stupid question.

Regardless, I found the answer...

I used this code:

#include <Windows.h>
#include <HSAPI.h>

WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                                        LPSTR lpCmdLine, int nCmdShow)
{

        long err;

        err = HsSetAppStatus(HsCloseApp, HSFLAG_RESTORE_REGISTRY);

        return err;

}


This works great!

Denny

**********
Denny W. Jones
Lighthouse Technologies
http://www.lhtech-inc.com
**********

Reply via email to