At 2:27 PM +0930 2002/05/31, Scott P wrote:
>Is it possible to tell that the palm is in the cradle (and connected to a
>computer) ..? I know there's the 'charging' value from SysBatteryInfo(), but
>I'd prefer to just be able to sense that a Palm was in the cradle. For
>example, how about one running off batteries? Searched the docs and the
>knowledge base and nothing obvious is showing up, any ideas...

With a few exceptions, the undocumented system-use-only function HwrDockStatus does 
what you want. The following escribe archive says it all:

  http://www.escribe.com/computing/pcpqa/search.html?query=HwrDockStatus

Note the 4.0 SDK defined the sysExternalConnectorAttachEvent and 
sysExternalConnectorDetachEvent notifications for this purpose, but... I'm fairly 
certain these have not yet been implemented.

Regards,

Jim Schram
PalmSource Inc.
Partner Engineering

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

Reply via email to