At 11:50 2002-11-11 -0800, you wrote:
How do I tell if my app is running via a gremlins session?  My
app has a setup screen where two popup triggers need to be selected
and then two text fields need to have valid numbers put into them.

Gremlins doesn't ever get past that screen, so if I'm running via
gremlins I'd like to just hardcode some values and skip the screen.
I can't just do a FtrGet() to check for POSE though, or I can't do
manual testing.
From HostControl.h, as published with POSE 3.5:

/* ==================================================================== */
/* Gremlin-related calls                                                */
/* ==================================================================== */

HostBoolType    HostGremlinIsRunning(void)
    HOST_TRAP(hostSelectorGremlinIsRunning);

long            HostGremlinNumber(void)
    HOST_TRAP(hostSelectorGremlinNumber);

long            HostGremlinCounter(void)
    HOST_TRAP(hostSelectorGremlinCounter);

long            HostGremlinLimit(void)
    HOST_TRAP(hostSelectorGremlinLimit);

HostErrType     HostGremlinNew(const HostGremlinInfoType*)
    HOST_TRAP(hostSelectorGremlinNew);

These should be useful for you, especially the first routine listed.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to