How do I send a HANDLE type to other threads via spawn?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Jun 29 15:22:25 PDT 2011


Ok I did found one workaround:

HWND mainWindow = FindWindow(appName.toUTF16z, windowName.toUTF16z);

But then the work thread has to know the exact class and window name
in order to get the window handle. (HWND is a HANDLE type in
disguise).


More information about the Digitalmars-d-learn mailing list