You can look at the Initialize capability for drivers. This may be available for apps, but Im not sure.
More info: