http://bugs.winehq.org/show_bug.cgi?id=20711
--- Comment #19 from Markus mst@collogia.de 2010-03-28 14:46:42 --- I don't think that GetModuleHandle will work because the library in doubt (dinput8.dll) is not loaded at the moment we issue the request. At the moment I only rely on MS documentation:
... The module must have been loaded by the calling process. ... The GetModuleHandle function returns a handle to a mapped module without incrementing its reference count ...
So how could we access a library without having a single reference?