Damjan Jovanovic wrote:
to make it work, but you'll realize sooner or later that a handle is tied to a unix fd.
In fact, it's tied to an "object" in wineserver: what fd would HWINDOW and HICON represent?
I assume you mean HWND and HICON. They are not wineserver (kernel32) objects. A HWND is a user32 handle, and an HICON in Wine is a process local pointer.
A HKEY is more interesting for the purposes of this discussion, as it is a wineserver object, and it is not tied to a unix fd. That's because you can't use ReadFile and WriteFile on it...
Mike