Hi all-

I'm trying to grab the Modem Manager preferences from the Modem Panel and
I'm having a bit of trouble. I've scoured the FAQs, Knowledge Base, and all
the sample code I have.

The Modem manager preference structure, MdmPrefType, is defined in
ModemPrv.h. All I want to do is grab the structure and use certain of those
prefs in my app.

Code snippet is as follows:
}
        VoidHand h;
        MdmPrefPtr sysModemPrefs;
        
        // Get system preference from modem panel
        h = DmGetResource(sysResTSysPref, sysResIDModemMgrPref); // these #defines
in SystemMgr.rh
        
        sysModemPrefs = MemHandleLock(h);
                        
        // Initialize the modem manager parameters and dial
        modemP -> initialBaud = sysModemPrefs -> baud; // initial baud rate to use
        modemP -> volume = sysModemPrefs -> volume; // speaker volume
        modemP -> pulse = sysModemPrefs -> pulse; // pulse or tone dialing

        MemHandleUnlock(h);
        DmReleaseResource(h);
}

The DmGetResource call returns NULL.

Have I been staring at this too long? Is my problem head-slappingly stupid?

Any help would be appreciated!

Thanks.

Joe
[EMAIL PROTECTED]

Reply via email to