get focused window in desktop by kernel modules(kext)

Discussion in 'Mac Programming' started by mehdies, Dec 17, 2012.

  1. macrumors member

    Joined:
    Jun 10, 2012
    #1
    Hi

    Is there any way to get focused window in kexts? I mean,can i get active program's name in kernel space that user working with that in user space?

    In user space we can use:

    Code:
     [[NSWorkspace sharedWorkspace]activeApplication];
    but i don't know in kernel space.

    Thanks
     
  2. ytk
    macrumors regular

    Joined:
    Jul 8, 2010
    #2
    I admit I know almost nothing about kernel programming, but my instincts tell me you're trying to do something very, very wrong here. :p
     

Share This Page