开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜