ProcessSerialNumber psn = { 0L, 0L };
OSStatus err = GetFrontProcess(&psn);
CFStringRef processName = NULL;
err = CopyProcessName(&psn, &processName);
string s(CFStringGetCStringPtr(processName, NULL));
More than 5 years have passed since last update.
アクティブなウィンドウを探す(Mac/Carbon)
Last updated at Posted at 2013-12-25
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
22