I need to implement usb related api’s like inserion of usb, removal of usb, drive name, drive letter, whether usb is formatted or not etc.
In windows, we use a library called “ntmsapi.dll”.
For using usb related functionality in windows we first use following API’s of ntmsapi.dll:
OpenNtmsSession() - The OpenNtmsSession function sets up a session with a RSM (Removable Storage Manager) server.
OpenNtmsNotification() - The OpenNtmsNotification function opens a channel to receive RSM object change notifications for objects of the specified type.
BeginNtmsDeviceChangeDetection() - The BeginNtmsDeviceChangeDetection function allows the application to begin a device change detection session.
GetNtmsObjectInformation() - The GetNtmsObjectInformation function returns an object’s information structure for the specified object.
SetNtmsDeviceChangeDetection() - The SetNtmsDeviceChangeDetection function sets one or more target devices for change detection.
My queries are:
Do we require to use such API’s for establishing sessions for QNX before using functionalities of USB?Or it is done automatically after insertion of usb?
Do we have any replacement/option of ntmsapi.dll for QNX?
Thanks in advance.