I'm trying to destroy a window through the API (plus doesn't offer functions to do this), but either instantly or soner or later WLM crashes ...
I can hide/show windows, close them (this doesn't destroy them, just sorta minimizes them) and everything works fine.
code:
Hiding:
Interop.Call('user32','ShowWindow',Wnd.Handle, 0);
Showing:
Interop.Call('user32','ShowWindow',Wnd.Handle, 1);
Close(minimize):
Interop.Call('user32','CloseWindow',Wnd.Handle);
Destroy:
Interop.Call('user32','DestroyWindow',Wnd.Handle);
According to
MSDN this is correct ...
Any ideas ?
Thanks