Please refer to the "Grab_GetDeviceInfo" sample code.