Data processing apparatus for controlling operation of a peripheral
device, e.g., a printer. The data processing apparatus is adaptable to
different operation environments of a peripheral device, e.g., geographic
difference. Control means of the peripheral device stores a local ID
indicative of environment data e.g., a country where the device is used.
The local ID is acquired, and then a resource file corresponding to the
local ID is acquired. The resource file stores control data of the
peripheral device, which changes in correspondence with environment data.
Based on the control data, setting of the peripheral device is performed.
The local ID is stored so that the local ID can be used in the subsequent
processing.