Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice
  2. We've opened up a space to discuss, share feedback, and showcase everything related to the Unity Shader Graph! Come show us what you've made.
    Dismiss Notice

[Managed Plugin] Window handles are always zero

Discussion in 'Extensions & OnGUI' 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