In the fourth and fifth embodiments described above, the data processing apparatus 1 is configured to issue a request to devices connected to the network for their model number and information related to the functions they possess and to receive these model numbers and functional information returned from the devices in response. However, the model numbers and functional information for all devices that the data processing apparatus 1 can use when executing the print-and-scan application may be preprogrammed in the print-and-scan application. In this case, the data processing apparatus 1 may be configured to perform the following process in S706 of
That is, the wireless communication unit 14 receives the model numbers of devices connected to the network. The control unit 11 compares the model numbers of devices preprogrammed in the print-and-scan application with the model numbers received by the wireless communication unit 14 for devices connected to the network and extracts all matching model numbers. Next, the control unit 11 reads information related to the functions of devices having the extracted model numbers from the print-and-scan application. The control unit 11 stores functional information for devices having the extracted model numbers in RAM in association with their model numbers and their IP addresses on the network. The information stored in RAM is identical to that shown in