"George Wayland" <[EMAIL PROTECTED]> wrote in message
news:35268@palm-dev-forum...
> What reference defines the use of the ExgLibControl API?

It's newly documented in Palm OS 4.0 (but works all the way back to Palm OS
3.0). I'm not sure if it's in the docs released as PalmSource, but it
probably is. Failing that, there's always the header files:

ExgLib.h:
    Err ExgLibControl(UInt16 libRefNum, UInt16 op, void *valueP, UInt16
*valueLenP)

IrLib.h:
    #define irGetScanningMode    (exgLibCtlSpecificOp | 1)    // returns
scanning enabled

Use it like this:
    UInt16 refNum;
    Boolean beamEnabled;

    SysLibFind(irLibName, &refNum);    // irLibName is defined in IrLib.h
    if (refNum != sysInvalidRefNum)
    {
        ExgLibControl(refNum, irGetScanningMode, &beamEnabled, NULL);
        ...use beamEnabled...
    }
--
Danny Epstein
OS Engineer, Palm Inc.


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

Reply via email to