On 2007-03-08, luis maldonado <[EMAIL PROTECTED]> wrote:
> I just
>
> 1) downloaded the netservices documentation from the pdn
> 2) reviewed the Palm overview
> 3) reviewed the data communications sections
>       paying particular attention to the master library
>      the http library and the html libraries
> 4) I also looked at the telephone sections with GSM and related material
> 5) I also read all of the 16 lines describing the net services API. and the 
> sections above it
>     which mentions the use of the palmwificommon.h file
>
> Unfortunately I did not see anything about how to get the MAC address using 
> any of the
> libraries mentioned above.
>
> Sorry if I'm being so obtuse, but if any body can point me in the right 
> direction where  I can find a bit of sample code I'd really be very 
> appreciative....
>
> Thanks again
>
> Luis
>
>

>From the PalmNetServices.h header file in the 5.3 SDK:
------------------------------------------------------------------------------
/**
 * Gets the HW address (i.e. MAC address) for the interface
 *
 * @param       libRefNum:      IN:  Reference number of the library.
 * @param       hwAddrP:        OUT: Pointer to store MAC address in.
 *                                       Must be 6 bytes in length.
 *
 * @retval      Err                     Error code.
 */
Err NetServicesGetHWAddr( UInt16 libRefNum, UInt8 *hwAddrP )
                                SYS_TRAP(NetServicesLibTrapGetHWAddr);
------------------------------------------------------------------------------
>From the same header file the library info:
------------------------------------------------------------------------------
/********************************************************************
 * Library type and creator
 ********************************************************************/

#define ShlLibName      "NetServLib"    /**< PalmNetServices library name. */
#define ShlCreatorID    'NETs'          /**< PalmNetServices creator ID. */
#define ShlLibType      'libr'          /**< PalmNetServices library type. */
------------------------------------------------------------------------------
That should be enough information.

Ton van Overbeek


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to