An information processing apparatus that executes security processing for a storage device connected thereto, the apparatus comprising: a processing command storage unit arranged to store a plurality of processing commands related to security processing of the storage device; a determining unit arranged to determine a storage device connected thereto; an obtaining unit that obtains a processing command for the storage device; and an executing unit arranged to execute the security processing corresponding to the storage device based on the obtained processing command; characterised in that: the processing command storage unit stores the plurality of processing commands according to the type of the storage device; the determining unit determines the type of the storage device and the obtaining unit obtains the processing command corresponding to the type determined by the determining unit, from the processing command storage unit; and in that the apparatus further comprises: an interrupting unit that is arranged to interrupt a transition to processing based on an operating system stored in the storage device; a table arranged to store an order of operations that indicates which of the security processing by the executing unit and the interrupting of the transition by the interrupting unit is to be executed first, corresponding to the type; and a selecting unit that is arranged to select and execute one of the security processing by the executing unit and the interrupting of the transition by the interrupting unit first, based on the order of operations stored in the table and the type determined by the determining unit. a processing command storage unit arranged to store a plurality of processing commands related to security processing of the storage device; a determining unit arranged to determine a storage device connected thereto; an obtaining unit that obtains a processing command for the storage device; and an executing unit arranged to execute the security processing corresponding to the storage device based on the obtained processing command; characterised in that: the processing command storage unit stores the plurality of processing commands according to the type of the storage device; the determining unit determines the type of the storage device and the obtaining unit obtains the processing command corresponding to the type determined by the determining unit, from the processing command storage unit; and in that the apparatus further comprises: an interrupting unit that is arranged to interrupt a transition to processing based on an operating system stored in the storage device; a table arranged to store an order of operations that indicates which of the security processing by the executing unit and the interrupting of the transition by the interrupting unit is to be executed first, corresponding to the type; and a selecting unit that is arranged to select and execute one of the security processing by the executing unit and the interrupting of the transition by the interrupting unit first, based on the order of operations stored in the table and the type determined by the determining unit. the processing command storage unit stores the plurality of processing commands according to the type of the storage device; the determining unit determines the type of the storage device and the obtaining unit obtains the processing command corresponding to the type determined by the determining unit, from the processing command storage unit; and in that the apparatus further comprises: an interrupting unit that is arranged to interrupt a transition to processing based on an operating system stored in the storage device; a table arranged to store an order of operations that indicates which of the security processing by the executing unit and the interrupting of the transition by the interrupting unit is to be executed first, corresponding to the type; and a selecting unit that is arranged to select and execute one of the security processing by the executing unit and the interrupting of the transition by the interrupting unit first, based on the order of operations stored in the table and the type determined by the determining unit. an interrupting unit that is arranged to interrupt a transition to processing based on an operating system stored in the storage device; a table arranged to store an order of operations that indicates which of the security processing by the executing unit and the interrupting of the transition by the interrupting unit is to be executed first, corresponding to the type; and a selecting unit that is arranged to select and execute one of the security processing by the executing unit and the interrupting of the transition by the interrupting unit first, based on the order of operations stored in the table and the type determined by the determining unit.