Using C++, how would I get the desktop window handle on Mac OS X?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. It isn’t owned by your process, and there’s no way to access windows which aren’t yours under Mac OS X unless you’re Dock.app or the WindowServer. (Dock.app has some special privileges, which can’t be duplicated by other processes, and WindowServer is directly responsible for the windows so it can do whatever it wants.)
Current versions of the Finder create desktop icons by creating a full-screen, mostly-transparent window with a very low level. If you’re just trying to draw stuff on top of the desktop, you can probably do something similar.