Patent ID: 7996854

Claim:
A method, in an information processing apparatus, for controlling resource access by an application program running on the information processing apparatus, the method comprising: a step of detecting a change in connection statuses or operating statuses of a device connected to the information processing apparatus; a step of, in response to detection of the change in the connection statuses or the operating statuses, referring to a table in which each of the connection statuses or the operating statuses of the device is in association with a resource access condition that should be applied, and selecting a resource access condition to be applied to the information processing apparatus; a step of storing the selected resource access condition in a condition storage unit; a step of capturing a function call for resource access issued to an operating system by the application program; a step of determining whether to allow the captured function call on the basis of the resource access condition read from the condition storage unit; and a step of rejecting the function call in response to determination not to allow the function call.