Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 11 - Miscellaneous / Reference
Functions and Methods / Utility Functions


ROM_GetSerialNumber

ROM_GetSerialNumber()

Returns the unique hardware serial number of a Newton device.

return value
An 8 byte binary object containing the Newton device's serial number.

DISCUSSION

This function is not defined in neither Newton 1.x nor 2.0 OS. You should wrap the call to this function in try...onException block, as in the following example:

local sn;

try sn := call ROM_GetSerialNumber with () onException |evt.ex| do nil; if sn then // ...

The serial number returned in ROM is not the same as the serial number stamped on the Newton device. The ROM serial number is intended for use by programmers.

The StrHexDump and ExtractByte functions are designed to read binary objects.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help