IOKitを使用して情報を取得しています
kr = IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceNameMatching("AppleUSBEHCI"), &io_objects);
[snip]
kr = IORegistryEntryCreateCFProperties(child, &child_props, kCFAllocatorDefault, kNilOptions );
NSLog(@"Child props: %@", child_props);
//release child_props
}
IOObjectRelease(io_service);
}
sn = (CFStringRef) CFDictionaryGetValue(child_props, CFSTR("IOCFPlugInTypes"));
NSLog(@"sn: %@", sn);
私は鍵を追いかけますIOCFPlugInTypes
:
それはうまくいきます、私は戻ってきます:
{
"9dc7b780-9ec0-11d4-a54f-000a27052861" = "IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle";
}
しかし、次に行う必要があるのは、次のような部分を取得することです。9dc7b780-9ec0-11d4-a54f-000a27052861
誰かが私がこれをやり遂げるのを手伝ってもらえますか?