0
我如何運行時檢測哪個品牌和型號的手機正在運行Brew或Brew MP?如何檢測Brew上的手機品牌和型號信息?
我如何運行時檢測哪個品牌和型號的手機正在運行Brew或Brew MP?如何檢測Brew上的手機品牌和型號信息?
,如果你有USB啓用日誌記錄
printdevinfo(s, AEE_DEVICEITEM_MODEL_NAME);
printdevinfo(s, AEE_DEVICEITEM_MANUFACTURER_NAME);
printdevinfo(s, AEE_DEVICEITEM_FRIENDLY_NAME);
如果printdevinfo這樣定義這應該工作:
static void printdevinfo(IShell* s, int id)
{
AECHAR* pItemBuff;
int nItemLen = 0;
ISHELL_GetDeviceInfoEx(s, AEE_DEVICEITEM_MANUFACTURER_NAME, NULL, &nItemLen);
pItemBuff = (AECHAR*)MALLOC(nItemLen);
if (!pItemBuff) return;
ISHELL_GetDeviceInfoEx(s, AEE_DEVICEITEM_MANUFACTURER_NAME, pItemBuff, &nItemLen);
DBGPRINTF("id_%d: '%S'", id, pItemBuff);
FREE(pItemBuff);
}