Search Unity

[Managed Plugin] Window handles are always zero

Discussion in 'Immediate Mode GUI (IMGUI)' started by ellion, Jan 25, 2019.

  1. ellion

    ellion

    Joined:
    Jun 22, 2016
    Posts:
    3
    Hej,

    I'm currently developing a managed plugin and stumbled across a weird problem. Whether I use Process.GetProcesses() or a user32 dll import of FindWindow: All handles are zero. While compiling this as standalone everything works like a charm. I figured it might be due to insufficient permissions of some sorts, but running Unity as administrator doesn't change a thing.

    Anyone got a quick idea in what direction to look?

    Thanks in advance,
    Daniel
     
  2. danrawls

    danrawls

    Joined:
    Dec 18, 2014
    Posts:
    5