Overlay.NET icon indicating copy to clipboard operation
Overlay.NET copied to clipboard

The handle of the parent window isn't valid

Open HelloKitty opened this issue 4 years ago • 2 comments

Demo code works fine when run in a console application but when I try to copy the demo code into another application, specifically Unity3D for testing, it fails to create the overlay on the target process which is another DirectX application.

However it doesn't make sense why this would occur as there is no other error and the process name provided is identitical to what is used in the Demo.

HelloKitty avatar Jul 26 '21 17:07 HelloKitty

Possiblity a Unity3D/Mono issue. MainWindowHandles seem to always be 0 https://www.reddit.com/r/Unity3D/comments/6zrin4/processmainwindowhandle_is_always_0/

HelloKitty avatar Jul 26 '21 18:07 HelloKitty

Forking Process.NET and managing MainWindowHandle manaully solved the issue.

HelloKitty avatar Jul 28 '21 03:07 HelloKitty