A processing method and a computer system for the driving program of a smart
peripheral
device. The processing method requests that the computer's operating system return
any information regarding any smart peripheral device connected to a peripheral
bus through a driving program written according to this invention. If the particular
smart peripheral device is supported by the operating system, a plug-and-play notification
is used to open a function device object established through a factory-provided
driving program. The function device object is used to retrieve a physical device
object established through a bus-driving program. Using the physical device object,
descriptors and calling data of the smart peripheral device are retrieved and employed
to set up necessary information for executing the driving program of this invention.