how to get vid pid from mac system?
I need to cross check a process with help of VID and开发者_JS百科 PID from MAC system. Can anyone assist me to get these id from objective C in mac system?
Assuming PID is process ID
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
NSString *processName = [processInfo processName];
int processID = [processInfo processIdentifier];
which gets process ID of current process I think..Hope this helps you get started..BTW what is VID??? Vendor ID?
精彩评论