A method and system to access native drivers in a computer using a generic
application interface. An embodiment of the method may include providing
the generic application interface to allow access to multiple peripheral
devices, where the interface is independent of the device-specific
features of the peripheral devices. The interface may include generic
routines commonly shared by the peripheral devices. The method may
further include using the interface to call the generic routines as a
function of device-specific features of a particular device upon receipt
of a request to access the particular device. The method provides a
generic API that may be commonly used by a plurality of applications on a
computer or a plurality of computers in a network to access a plurality
of peripheral devices. As such, the developer or user may port
applications based on the generic API between different computers without
making modifications to the applications. Exemplary applications include
mobile devices in wireless communication with network peripheral devices.